Domain Pointer
Posted by: dhost
Posted on: 2009-02-13 02:56:00
How do I point a domain to another URL from the Dreamhost Control Panel?
Where do I need to go?
Posted by: dhost
Posted on: 2009-02-13 02:56:00
How do I point a domain to another URL from the Dreamhost Control Panel?
Where do I need to go?
Posted by: sXi
Posted on: 2009-02-13 06:14:00
If you want to redirect abc.com to xyz.com:
Panel > Domains > Manage Domains
- Click Edit next to abc.com
- Redirect to URL: xyz.com
- Click the Redirect this domain now! button.
How To Install PHP.INI / ionCube on DreamHost
Posted by: dhost
Posted on: 2009-02-13 10:03:00
Thanks.
abc.com is redirected to xyz.com
Another query. If I need to point abc.com/page to pqr.com?
Posted by: sXi
Posted on: 2009-02-13 11:02:00
Posted by: dhost
Posted on: 2009-02-13 11:16:00
I have not hosted the website with any application. Just only set a URL pointer. Where do I find .htaccess ?
Posted by: Atropos7
Posted on: 2009-02-13 11:34:00
In reply to:I have not hosted the website with any application. Just only set a URL pointer. Where do I find .htaccess ?
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
openvein.org -//-
Posted by: dhost
Posted on: 2009-02-13 11:46:00
I do not want to Fully Host because I need a redirection. Any thoughts on this?
Posted by: sXi
Posted on: 2009-02-13 12:04:00
It *has* to be Fully Hosted for you to redirect elements within it.
How To Install PHP.INI / ionCube on DreamHost
Posted by: dhost
Posted on: 2009-02-13 12:19:00
And to redirect the Main domain?
Posted by: sXi
Posted on: 2009-02-13 12:25:00
If you redirect the entire domain then elements no longer exist within it.
What, precisely, are you trying to accomplish?
How To Install PHP.INI / ionCube on DreamHost
Posted by: Atropos7
Posted on: 2009-02-13 12:26:00
/home/user/abc.com/.htaccess
-------------------------------
# Redirect particular page
Redirect 301 /page http://www.pqr.com
# Redirect other pages,
Redirect 301 / http://www.xyz.com
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
openvein.org -//-
Posted by: dhost
Posted on: 2009-02-13 14:13:00
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
Posted by: dhost
Posted on: 2009-02-13 15:29:00
So what do I now need to do for redirecting to a particular page? It is failing though is Fully hosted.
Posted by: sXi
Posted on: 2009-02-13 15:57:00
What, precisely, are you trying to accomplish?
How To Install PHP.INI / ionCube on DreamHost
Posted by: dhost
Posted on: 2009-02-13 16:31:00
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.
Posted by: sXi
Posted on: 2009-02-13 17:18:00
In reply to:http://www.abc.com/ pointing to http://www.abc.xyz.com/abc/pqr.html
http://www.abc.com/page pointing to http://www.bcd.xyz.com/bcd/anotherpage.html
/home/user/abc.com/.htaccess :
Redirect 301 /page http://www.bcd.xyz.com/bcd/anotherpage.html
Redirect 301 / http://www.abc.xyz.com/abc/pqr.html
Note that page *means* "page". No extension.
If it's page.html, page.php, etc. then edit your .htaccess to reflect this.
How To Install PHP.INI / ionCube on DreamHost
Posted by: dhost
Posted on: 2009-02-13 19:57:00
As said earlier:
The following did not work. It gives me error "404 NOT FOUND"
# Redirect particular page
Redirect 301 /page 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
Posted by: sdayman
Posted on: 2009-02-13 20:06:00
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.bcd.xyz.com/bcd/anotherpage.html
http://www.abc.xyz.com/abc/pqr.html
-Scott
Posted by: dhost
Posted on: 2009-02-13 20:26:00
Looks like this is going confusing:
Let me again try explaining:-
http://www.abc.com/
should point to
http://www.abc.xyz.com/abc/pqr.html
http://www.abc.com/page
should point to
http://www.bcd.xyz.com/bcd/anotherpage.html
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
After doing this, I go to the web browser and enter URL:
http://www.abc.com/
and that takes me to:
http://www.abc.xyz.com/abc/pqr.html
which is correct.
Next I enter the following in browser:
http://www.abc.com/page
and that returns me:
404 NOT FOUND
Hope that helps.
Posted by: sXi
Posted on: 2009-02-13 21:03:00
In reply to: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
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:
In reply to:Redirect 301 /page http://www.bcd.xyz.com/bcd/anotherpage.html
Redirect 301 / http://www.abc.xyz.com/abc/pqr.html
Posted by: sdayman
Posted on: 2009-02-14 06:52:00
That's weird. All of the posts up until the last one had them in the right order.
-Scott
Posted by: sXi
Posted on: 2009-02-14 07:19:00
Yeah lol.
Even more so, if this redirection kafuffle is due to having a "new, easier to type" URL or whatever it was, the entirety should be migrated to the new domain and the redirection placed on the old "hard" site(s) -> pointing to the new one. The 301 methodology will carry any hard-earned pagerank over to the new domain, making it win/win.
How To Install PHP.INI / ionCube on DreamHost
Posted by: dhost
Posted on: 2009-02-14 09:58:00
Thanks a lot... This was the right thing. My issue is resolved.