A
A
Alexander2016-08-23 11:09:18
Apache HTTP Server
Alexander, 2016-08-23 11:09:18

How to properly set up a redirect to http c https, except for one page?

Good afternoon, I have a redirect on my site from the order page to https, but after this redirect the browser automatically redirects the entire site to
https

RewriteCond %{HTTPS} =off
RewriteCond %{REQUEST_URI} =/order/
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [QSA,L]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2016-08-24
@shambler81

RewriteCond %{REQUEST_URI} =!/order/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question