Mod_rewrite to redirect from temporary domain
-
Google has indexed pages with a temporary domain name, and it seems the best way to redirect those is with mod_rewrite, but I don’t want to mess up the default (shown below). Can anyone provide an example to show how to redirect tempdomain.com to livedomain.com?
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule># END WordPress
- The topic ‘Mod_rewrite to redirect from temporary domain’ is closed to new replies.