Answer the question
In order to leave comments, you need to log in
Why does this rewrite rule rule not work?
RewriteRule ^?s=([A-Za-z0-9-]+)$ page.php?s=$1 [PT]
The idea is to have an address like domain.com/?s=cars parsed to domain.com/ page.php?s=cars
But that doesn't happen. Where is the mistake?
PS index page: index.php
Answer the question
In order to leave comments, you need to log in
Because the parameters (after ?) need to be checked and overwritten separately.
Here are examples: statichtml.com/2010/mod-rewrite-baseon-on-query-st...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question