Created
June 29, 2016 14:50
-
-
Save duroe5698/3fa3962583bcd95b4257d641900848dc to your computer and use it in GitHub Desktop.
htaccess redirect when moving to new domain
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
<IFModule mod_rewrite.c> | |
RewriteEngine on | |
Options +FollowSymlinks | |
RewriteBase / | |
RewriteCond %{HTTP_HOST} ORIGINALDOMAIN\.com | |
RewriteRule ^(.*) http://NEWDOMAIN.com/$1 [L,R=301] | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment