Answer the question
In order to leave comments, you need to log in
How to replace url?
Hello, there is a url like /catalog&cat=2 The
question is how to change the url for example to /nazvanie-page ?
Can it be done via htaccess?
The CNC is working on the site.
It is necessary to do not redirect to another existing page, but to replace the url!
Answer the question
In order to leave comments, you need to log in
The get is not part of the url and you have a very strange link because the & is used after the ?
RewriteCond %{QUERY_STRING} (^|&)cat\=2($|&)
RewriteRule ^catalog$ /nazvanie-page? [L,R=301]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question