A
A
Alexey Klyonin2019-08-03 14:06:53
Apache HTTP Server
Alexey Klyonin, 2019-08-03 14:06:53

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

1 answer(s)
V
Viktor Taran, 2019-08-05
@shambler81

show all .htaccess

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question