S
S
Stanislav Belov2015-04-18 15:56:56
Apache HTTP Server
Stanislav Belov, 2015-04-18 15:56:56

How to redirect from https to http on the entire site except for the checkout page?

The essence of the question is how to make a redirect from https to http on the entire site except for three pages?
I have an SSL certificate connected to the site, that is, on the checkout, login and registration pages, the urls are registered with https, and on the rest of the site a redirect is simply made from without www to www. But the site is also accessible via the https protocol. So this is how the entire site was redirected from https to http, except for the three pages listed above. So for example done on the site www.lamoda.ru

UPD. I'll make the question more specific. How to make such redirects?

redirect from domain.com to www.domain.com
redirect from https://domain.com to www.domain.com
redirect from https://www.domain.com towww.domain.com

And only one page to do with
https://www.domain.com/index.php?route=checkout/si...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vlad Zhivotnev, 2015-04-18
@inkvizitor68sl

RewriteEngine On
RewriteCond %{HTTPS} on
RewriteCond %{REQUEST_URI} !^/url1
RewriteCond %{REQUEST_URI} !^/url2
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

So try.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question