M
M
Mark2018-05-10 14:20:30
htaccess
Mark, 2018-05-10 14:20:30

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

1 answer(s)
V
Viktor Taran, 2018-05-10
@shambler81

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 question

Ask a Question

731 491 924 answers to any question