Forum Moderators: phranque
www.example.com/whatever/
but I do not want to redirect when index.php or any other .php is written instead of whatever
i used the following rules
RewriteRule ^/[^\.](.+)/$ /show.php?page_url=$1 [L]
and
RewriteRule ^/^index\.php$(.+)/$ /show.php?page_url=$1 [L]
but both URLs dont catch the pattern.
please help, thank you.
# Rewrite all requests which have no file extension
RewriteRule ^(([^/]/)*[^.]+)/$ /show.php?page_url=$1 [L] (removed first slash)
# Rewrite requests for all "pages" requested with trailing slash
RewriteRule ^(.*)/$ /show.php?page_url=$1 [L] (removed first slash)
Jim
RewriteRule ^(index\.php)$(.+)$
:P
i know that $ will end the rule but not sure how to do that. in fact what i wanted to know is that how do we implement LOGICAL AND in the rules e.g
this AND this too, for OR we can use pipe key.
thanks