Re-direct to another Domain?
January 5, 2008 7:25 PM   RSS feed for this thread Subscribe

How do I redirect all results to a directory on my website to a totally different domain?

I used to host a friend's website in a directory on my site, but I eventually moved them to their own domain. Their old URL, because I run Wordpress, now goes to my main site. I'd like to have that URL forward to their new domain.

Sadly, my .ht_access-fu is non-existant. Help?
posted by SansPoint to computers & internet (4 comments total) 3 users marked this as a favorite
If it's just the -fu that is non-existant, but you CAN use .htaccess, it's pretty simple.

You could use mod_rewrite, but the easiest way (IMHO) would be to do:

Redirect permanent /old_directory http://new_domain.com

in .htaccess on your root directory.
posted by foxydot at 7:35 PM on January 5 [1 favorite]


Try this:

META HTTP-EQUIV="Refresh" CONTENT="1;URL=http://www.yourdomain.com/"

Add opening and closing <>
posted by davebush at 7:38 PM on January 5


Whenever possible, don't use META HTTP-EQUIV="Refresh". Foxydot's got it.
posted by churl at 7:55 PM on January 5


foxydot - That's the trick indeed! Thank you so much!
posted by SansPoint at 8:21 PM on January 5


« Older TAX-Filter: Please help me un...   |   Help me find a quality, non-di... Newer »

You are not logged in, either login or create an account to post comments



Related Questions
Can someone explain this mysterious page hijacking... November 27, 2007
Giving a domain as a gift--what software and links... May 7, 2007
How do I manage two domains on the same hosting... January 30, 2007
CANCELLING a 1and1 hosting account October 17, 2006
Does anyone know of an efficient way to get... February 4, 2004