Answer the question
In order to leave comments, you need to log in
How to redirect a page from http to https?
Hello!
The site has moved to https.
How to make a correct redirect so that when you click on
http://homster-online.com/korpusnaja-mebel-123.html
https://homster-online.com/korpusnaja-mebel-123.html
? RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
Answer the question
In order to leave comments, you need to log in
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Does not help.
When you click on the link homster-online.com/korpusnaja-mebel-123.html, you get to https://homster-online.com/.
Although https://homster-online.com/korpusnaja-mebel-123.html is all right.
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question