Created
November 13, 2018 13:43
-
-
Save ru2fac/28ec8451d37872e95aa52572ec3d40b3 to your computer and use it in GitHub Desktop.
301 redirect from WWW to without WWW
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
| # Insert this code to .htaccess file | |
| RewriteEngine on | |
| Options +FollowSymLinks | |
| RewriteEngine On | |
| RewriteCond %{HTTP_HOST} ^www.domain\.ru$ [NC] | |
| RewriteRule ^(.*)$ https://domain.ru/$1 [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment