Created
June 7, 2017 08:00
-
-
Save chernysh2909/5b6ace6e4ac5c44f36631c436ddba031 to your computer and use it in GitHub Desktop.
Удаление дублей главной opencart
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
# Редирект c www на без www | |
RewriteCond %{HTTP_HOST} ^www.site.ru | |
RewriteRule ^(.*)$ http://site.ru/$1 [R=301,L] | |
# Редирект для главной (с /index.php на /) | |
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\ HTTP/ | |
RewriteRule ^index\.html$ / [R=301,L] | |
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ | |
RewriteRule ^index\.php$ / [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment