Answer the question
In order to leave comments, you need to log in
How to make a redirect in .htaccess RedirectMatch?
You need to make a redirect from
/(.*)/cat_1/ to /cat_1/
But so that the blog does not get into the brackets.
In fact, a redirect from any combination of characters except /blog/cat_1/
/moscow/cat_1/ - redirect
/spb/cat_1/ - redirect
/orel/cat_1/ - redirect
/blog/cat_1/ - no redirect
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