Created
June 11, 2018 19:17
-
-
Save fasterwp/817ec59ece01ce7670ce609fcd50ddf8 to your computer and use it in GitHub Desktop.
Redirect old domain to new domain in htaccess
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
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^olddomain.com [NC,OR] | |
RewriteCond %{HTTP_HOST} ^www.olddomain.com [NC] | |
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [L,R=301,NC] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment