Can someone help me again regarding this rewrite module,
with this rules
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) $1.php [QSA,L]
with this rules, i can get the requested url www.example.com/test to www.example.com/test.php but how can i get following url www.example.com/test/test2/test3/test4 to www.example.com/test.php
i tried
RewriteRule (.*)/?$ $1.php [QSA,L]
don't laugh at me... i actually tried
RewriteRule (.*)/(.*)/(.*)/(.*)$ $1.php [QSA,L]
and this works for this link
www.example.com/test/test2/test3/test4 to www.example.com/test.php
but, not for this one...
www.example.com/test to www.example.com/test.php
i'm using explode on Php cause i don't know how many parameters, that i need, if it is only 2 parameters, and this rules should be work.
RewriteRule ^(.+/)?([^/]*)$ p.php?s=%1&p=$2 [QSA,L,NC]
i did keep checking every similiar questions, which appear on the right, but i don't see any solution yet.