Answer the question
In order to leave comments, you need to log in
How to add exception to RewriteRule?
Hello!
Please help me set up a redirect: redirect all requests to http://www
, except for two requests: https://domain.ru/pay/check and https://domain.ru/pay/aviso they should work with/without www
RewriteCond %{HTTP_HOST} ^domain.ru$ [NC]
RewriteCond %{REQUEST_URI} !^pay/check //не помагает
RewriteRule ^(.*)$ http://www.domain.ru/$1 [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