Re-direct to another Domain?
January 5, 2008 7:25 PM
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?
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?
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, 2008
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, 2008
Whenever possible, don't use META HTTP-EQUIV="Refresh". Foxydot's got it.
posted by churl at 7:55 PM on January 5, 2008
posted by churl at 7:55 PM on January 5, 2008
foxydot - That's the trick indeed! Thank you so much!
posted by SansPoint at 8:21 PM on January 5, 2008
posted by SansPoint at 8:21 PM on January 5, 2008
This thread is closed to new comments.
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, 2008