M
M
maxsidrom12016-07-20 15:47:01
htaccess
maxsidrom1, 2016-07-20 15:47:01

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]


How to make certain pages site.rf/RequiredPage1.html and site.rf/RequiredPage2.html stay on http?

Or is there a redirect from https to http of certain pages?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nelolka, 2016-07-20
@nelolka

Google gave the first link (on request htaccess redirect http to https except )
stackoverflow.com/a/26427138

L
Lindon_cano, 2016-07-20
@Lindon_cano

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 question

Ask a Question

731 491 924 answers to any question