Created
April 13, 2017 12:55
-
-
Save CB9TOIIIA/66121f2e5fe0bed9f235038c21a2fd97 to your computer and use it in GitHub Desktop.
301 домен на домен
This file contains hidden or 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 | |
RewriteCond %{REQUEST_FILENAME} robots.txt$ [NC] | |
RewriteRule ^([^/]+) $1 [L] | |
RewriteCond %{HTTP_HOST} ^(www\.)?old-domain\.ru$ | |
RewriteRule ^(.*)$ http://www.new-domain.ru/$1 [R=301,L] | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment