A
A
alehandroWEB2018-05-10 14:07:07
Apache HTTP Server
alehandroWEB, 2018-05-10 14:07:07

How to redirect all pages except one to https?

It is necessary that all pages except one open via https. This code:

RewriteCond %{REQUEST_URI} =!^/speedtest
RewriteRule (.*) https://site.ru/$1 [R=301,L]

all pages redirect to https, and when you try to go to site.ru/speedtest , it says Not Found

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