Answer the question
In order to leave comments, you need to log in
301 redirect how to do?
Made a redirect from www. to without www, then redirect from index.html to /
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.мойсайт.com$ [NC]
RewriteRule ^(.*)$ http://мойсайт.com/ [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/
RewriteRule ^index\.html$ http://мойсайт.com/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^(.+)/$
RewriteRule ^(.+)/$ http://мойсайт.ком/$1 [R=301,L]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question