Answer the question
In order to leave comments, you need to log in
How to find the first match?
There are links like
../product/deny/?id=1
../product/?id=1
RewriteRule ^(?!.*mypanel|public)(.*?)/$ index.php?p=$1 [L,QSA]
Answer the question
In order to leave comments, you need to log in
I propose to write 2 instructions:
RewriteRule ^([^/]+)/?$ /index.php?p=$1 [L,QSA]
RewriteRule ^([^/]+)/(.+)/?$ /index. php?p=$1&p2=$2 [L,QSA]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question