Created
December 2, 2015 18:01
-
-
Save pradeepdotco/1656e27e1c91649a92ca to your computer and use it in GitHub Desktop.
htaccess code to 301 redirect 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
# BEGIN WordPress | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^www.oldwordpress.com RewriteRule (.*) | |
http://www.newwordpress.com/$1 [R=301,L] | |
# END WordPress |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment