A
A
Artyom2014-09-19 11:56:22
htaccess
Artyom, 2014-09-19 11:56:22

How to make a redirect by removing one get request?

Good afternoon
There is a link site.ru/catalog?page=1&sort=ASC
It is necessary that there be a redirect only without page=1
site.ru/catalog?&sort=ASC
I'm trying to record it like this
RedirectMatch ^([^page=1]*)page=1(.*)$ $1$2
But nothing happens
What's wrong?
Thanks

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question