Answer the question
In order to leave comments, you need to log in
Why doesn't 301 redirect work for pages of the 3rd level of nesting?
Good afternoon.
What could be the reason that 301 redirect does not work for pages of the 3rd level of nesting (site.ru/category/page.html)
Everything works correctly for site.ru and site.ru/category/.
.htaccess content
AddHandler application/x-httpd-php .php .html .shtml .htm
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} ^www\.(.*)$
RewriteRule ^(.*)$ http://%1/$1 [L,R=301]
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