Last active
August 29, 2015 14:14
-
-
Save ahmadawais/f2f68ef6c5052b3b43c0 to your computer and use it in GitHub Desktop.
301 redirect for all URLs when you change your base 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
#addthese two lines in the root folder of your old domain inside .htaccess file | |
RewriteEngine on | |
RewriteRule (.*) http://newdomain.com/$1 [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment