Answer the question
In order to leave comments, you need to log in
How to remove unnecessary from url using htaccess?
Hello, tell me how can I remove the extra from the URL
Now the url is this - site.com/?categoryID=1&sort=top
Need to slaughter "&sort=top" to make the URL site.com/?categoryID=27
Answer the question
In order to leave comments, you need to log in
site.com/?categoryID=1&sort=top
everything about the question is just part of the url dear. This is a get request.
RewriteCond %{QUERY_STRING} (^|&)categoryID\=([0-9]{1,})($|&)
RewriteCond %{QUERY_STRING} (^|&)sort\=top($|&)
RewriteRule (.*) $1\?categoryID%2
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question