Answer the question
In order to leave comments, you need to log in
Why does the redirect only redirect from http to https from the homepage?
Good afternoon!
There are lines in the .htaccess file:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [QSA,L]
Answer the question
In order to leave comments, you need to log in
RewriteCond %{HTTP_HOST} ^www.domain.ru$ [NC]
RewriteRule ^(.*)$ https://www.domain.ru/$1 [R=301,L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question