Answer the question
In order to leave comments, you need to log in
How to write correct rule for RedirectMatch in .htaccess?
It is necessary that requests for the /pages/ directory be redirected to the main page.
This way: RedirectMatch 301 ^/pages/*/$ /
it only works if you go to the /pages directory, and then /pages/in the rule stops working...
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