YA htaccess Q
February 28, 2006 2:10 PM
Subscribe
Another redirect question.
My wife has just shifted her weblog from a folder on my server to another server. I want anyone who links to:
http://mysite.com/wife/path/to/file/file.html
to be automatically redirected to:
http://wifesite.com/path/to/file/file.html
Note there are several different paths to files - and this structure will remain identical (for now) on the new server.
I've looked at the other Mod_rewrite and htaccess tagged posts here, and they seem promising, but I can't get them to work. This is likely because I am an idiot, I know, but please be charitable!
posted by mikel to computers & internet (9 comments total)
<?php
header("Location: http://wifesite.com/path/to/file/file.html");
?>
Just make sure .htaccess has the line:
DirectoryIndex index.php
posted by frykitty at 2:48 PM on February 28, 2006