H
H
Harvey Specter2020-05-15 12:54:50
htaccess
Harvey Specter, 2020-05-15 12:54:50

How to redirect a link with GET parameters to a link without them?

Good day. Plz tell me, there is a main page of the site on WordPress, on which the product filter using get parameters and ajax changes the information. But when the page is updated (if there are get parameters in the link), it transfers to another page, depending on these same parameters.
How can you use htaccess to replace the link of the main page, if it has get parameters assigned to it, with a link without them?
PS I searched on the Internet, found only how I got specific get parameters, how to check for any get parameter in general, I did not find it.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2020-05-15
@shambler81

yes, in the "where" url, you need to put a question mark at the end,
then the get will be deleted.
The only thing left for you to do is to check for the presence of a get at the beginning so that there is no cycle.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question