G
G
Gosha Sitnikov2020-01-19 18:40:52
URL Handling
Gosha Sitnikov, 2020-01-19 18:40:52

How to make an exception for one page when redirecting from HTTP to HTTPS?

in .htaccess I have a redirect configured from HTTP to HTTPS

RewriteEngine On
RewriteCond %{REQUEST_URI} !^/robots\.txt$
RewriteCond %{HTTP:X-Forwarded-proto} !^https$
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI } [R= 301,L]


how to make an exception for the page site.ru/page

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question