Created
September 9, 2016 09:04
-
-
Save lukewhitehouse/2da99c2c324b070cb6bc4dd44c767e2d to your computer and use it in GitHub Desktop.
301 Redirects stuff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Redirect entire site from old to new domain | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^olddomain\.com$ [OR] | |
RewriteCond %{HTTP_HOST} ^www\.olddomain\.com$ | |
RewriteRule (.*)$ http://www.newdomain.com/$1 [R=301,L] | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Potential solution to 301s in WordPress multisite - http://wordpress.stackexchange.com/questions/91647/multisite-htaccess-301-redirects