Answer the question
In order to leave comments, you need to log in
How to write .htacces rule correctly?
such an address
krymray.ru//oneproduct?id=2 falls out with a 404 error I try to set up a 301 redirect like this Redirect 301 /oneproduct?id=2 http://krymray.ru/
but the rule does not work tell me what the problem is
Answer the question
In order to leave comments, you need to log in
RewriteRule ^/oneproduct?id=([0-9]+)$ index.php [L,R=301]
RewriteRule ^/oneproduct?id=([0-9]+)$ index.php?id=$1 [L,R=301]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question