Answer the question
In order to leave comments, you need to log in
Why doesn't address exclusion from classic redirect to HTTPS work?
In my .htaccess there is a classic HTTPS redirect block,
I add two addresses to it that I want to open both via http:// and via https://
but the following entry does not work, i.e. always redirects to https
...
RewriteCond %{REQUEST_URI} !^\/rss.*$
RewriteCond %{REQUEST_URI} !^\/yrss.*$
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,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