Answer the question
In order to leave comments, you need to log in
Redirect from http to https except certain pages?
.htaccess is configured to redirect from http to https
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
Answer the question
In order to leave comments, you need to log in
Google gave the first link (on request htaccess redirect http to https except )
stackoverflow.com/a/26427138
Please note that if you need part of the pages via http, and part via https, then you need to disable the transmission of HSTS in headers, otherwise someone who visits https once will always go to it and will not be able to go to http
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question