Answer the question
In order to leave comments, you need to log in
How to make a 301 (not 302) redirect from HTTP to HTTPS in .htaccess?
On the site being promoted, a redirect from HTTP to HTTPS is configured in .htaccess with the following code:
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question