Re-direct to another Domain?
January 5, 2008 7:25 PM   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 answers total) 3 users marked this as a favorite
 
Best answer: 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, 2008 [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, 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


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


« Older Deducting Child Care Expenses   |   Romantic symbolism: conflict-free and on the cheap Newer »
This thread is closed to new comments.