Answer the question
In order to leave comments, you need to log in
How to write a redirect rule in htaccess for a url with a question mark without get parameters?
Redirect status should be 301.
Example:
If we go to https://site.ru ? , then redirect https://site.ru ,
Or
https://site.ru/catalog/product/ ?, redirect https://site.ru/catalog/product/
If the get parameters are present, then of course the redirect should not work.
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question