Created
February 4, 2015 20:44
-
-
Save muskie9/f173f60eafa113f2b4d5 to your computer and use it in GitHub Desktop.
This will take any page (i.e. http://olddomain.com/some-url-segment) and redirect it to a new domain (i.e. http://www.newdomain/some-url-segment)
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
RewriteCond %{HTTP_HOST} !newdomain.com$ [NC] | |
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [L,R=301] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment