Craig McCoy

Programmer / Developer & Zombie Survivalist

SEO

mod_rewrite to move one domain to another

Aug/2009 10

There may come a day when you need to move one domain's content to another. This can easily be done with a little mod rewrite trickery in apache.

Note the ^/ on the RewriteRule line, I have that because my server automatically adds the trailing slash, and if I don't put this it will add two slashes on the rewrite. This just says, take everything after the first slash. If your server dosen't do this, then you can omit the / and make it like: RewriteRule ^(.*).

Pages

Subscribe to RSS - SEO