Last active
November 13, 2018 22:06
-
-
Save ru2fac/11639f7642712a6174a22f3be1f4ff16 to your computer and use it in GitHub Desktop.
Redirect to new domain .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
Options +FollowSymLinks | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} old-domain.ru [NC] | |
RewriteRule ^(.*)$ https://new-domain/$1 [R=301,L] |
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} ^([^www].*)$ | |
RewriteRule ^(.*)$ http://www.%1/$1 [L,R=301] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment