Domain Pointer


#2

If you want to redirect [color=#00CC00]abc.com[/color] to [color=#CC0000]xyz.com[/color]:

[color=#0000CC]Panel > Domains > Manage Domains[/color]

  • Click [color=#0000CC]Edit[/color] next to [color=#00CC00]abc.com[/color]

  • Redirect to URL: [color=#CC0000]xyz.com[/color]

  • Click the [color=#0000CC]Redirect this domain now![/color] button.

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#3

Thanks.

abc.com is redirected to xyz.com

Another query. If I need to point abc.com/page to pqr.com?


#4

In .htaccessRedirect 301 /page http://www.pqr.com
Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#5

I have not hosted the website with any application. Just only set a URL pointer. Where do I find .htaccess ?


#6

You have set the domain to be “fully hosted” instead. At that point you specifiy a “FTP / CGI runs-as user
”, and a “web directory”. Login to to FTP/SFTP/shell as this user and create the .htaccess file in that directory. Eg:

user = johndoe
domain = example.com
create /home/johndoe/example.com/.htaccess

:cool: openvein.org -//-


#7

I do not want to Fully Host because I need a redirection. Any thoughts on this?


#8

It has to be Fully Hosted for you to redirect elements within it.

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#9

And to redirect the Main domain?


#10

If you redirect the entire domain then elements no longer exist within it.

What, precisely, are you trying to accomplish?

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#11

/home/user/abc.com/.htaccess
-------------------------------[code]# Redirect particular page
Redirect 301 /page http://www.pqr.com

Redirect other pages,

Redirect 301 / http://www.xyz.com[/code]
Keep in mind when the url-path is a directory the rest of the request uri will be added to the new URL,
eg

# http://abc.com/files/something.jpg -> http://www.xyz.com/files/something.jpg Redirect 301 /files http://www.xyz.com/files

:cool: openvein.org -//-


#12

Thanks

The following did not work. It gives me error “404 NOT FOUND”

Redirect particular page

Redirect 301 /page http://www.pqr.com

Following worked:

Redirect other pages,

Redirect 301 / http://www.xyz.com


#13

So what do I now need to do for redirecting to a particular page? It is failing though is Fully hosted.


#14

What, precisely, are you trying to accomplish?

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#15

I have a website with a URL: http://www.abc.xyz.com/abc/pqr.html
As this will be difficult in remembering, I have another domain http://www.abc.com and pointed it to above URL. Now through the .htaccess file having entry as follows:-

Redirect particular page

Redirect 301 /page http://www.bcd.xyz.com/bcd/anotherpage.html

Redirect main page

Redirect 301 / http://www.abc.xyz.com/abc/pqr.html

Now I want to have the following to happen:

http://www.abc.com/ pointing to http://www.abc.xyz.com/abc/pqr.html

and

http://www.abc.com/page pointing to http://www.bcd.xyz.com/bcd/anotherpage.html

Hope this helps.


#16

[quote]http://www.abc.com/ pointing to http://www.abc.xyz.com/abc/pqr.html

http://www.abc.com[color=#0000CC]/page[/color] pointing to http://www.bcd.xyz.com/bcd/anotherpage.html[/quote]
/home/user/abc.com/.htaccess :

Redirect 301 /[color=#0000CC]page[/color] http://www.bcd.xyz.com/bcd/anotherpage.html Redirect 301 / http://www.abc.xyz.com/abc/pqr.html
Note that [color=#0000CC]page[/color] means “page”. No extension.

If it’s page.html, page.php, etc. then edit your .htaccess to reflect this.

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#17

As said earlier:
The following did not work. It gives me error “404 NOT FOUND”

Redirect particular page

Redirect 301 [color=#0000CC]/page[/color] http://www.bcd.xyz.com/bcd/anotherpage.html

Following worked:

Redirect other pages,

Redirect 301 / http://www.abc.xyz.com/abc/pqr.html

I need to resolve for the “404 NOT FOUND” error


#18

Which didn’t work? /page most likely isn’t the URL of a page. And there should be a URL for that 404 screen. What’s the URL?

Do the following work?


http://www.abc.xyz.com/abc/pqr.html

-Scott


#19

Looks like this is going confusing:

Let me again try explaining:-

[color=#00CC00]http://www.abc.com/ [/color]
should point to
[color=#CC6600]http://www.abc.xyz.com/abc/pqr.html[/color]

[color=#00CC00]http://www.abc.com/[color=#0000CC]page[/color][/color]
should point to
[color=#CC6600]http://www.bcd.xyz.com/bcd/anotherpage.html[/color]

Following is set in .htaccess:-

Redirect 301 / http://www.abc.xyz.com/abc/pqr.html
Redirect 301 [color=#0000CC]/page[/color] http://www.bcd.xyz.com/bcd/anotherpage.html

After doing this, I go to the web browser and enter URL:

[color=#00CC00]http://www.abc.com/[/color]

and that takes me to:

[color=#CC6600]http://www.abc.xyz.com/abc/pqr.html[/color]

which is correct.

Next I enter the following in browser:

[color=#00CC00]http://www.abc.com/[color=#0000CC]page[/color][/color]

and that returns me:

[color=#CC0000]404 NOT FOUND[/color]

Hope that helps.


#20

[quote]Following is set in .htaccess:-

Redirect 301 / http://www.abc.xyz.com/abc/pqr.html
Redirect 301 /page http://www.bcd.xyz.com/bcd/anotherpage.html[/quote]
You have the directives arse-about mate.

What’s happening is the request is coming in for /page but your first directive is sending it off to the / link and appending page onto the end of it. If you look in the address bar when hitting that 404 you’ll see something like:

http://www.abc.xyz.com/abc/pqr.htmlpage (which apparently doesn’t exist).

Copy/pasta what was typed in the earlier response:

[quote]Redirect 301 /page http://www.bcd.xyz.com/bcd/anotherpage.html
Redirect 301 / http://www.abc.xyz.com/abc/pqr.html[/quote]

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#21

That’s weird. All of the posts up until the last one had them in the right order.

-Scott