1

Apache Rewrite - Allow php filetype

view story
linux-howto

http://serverfault.com – RewriteRule ^([^/]*)/([^/]*)$ /index.php?id=$1&n=$2 [L]   This rule will write website.com/4/name to /index.php?id=4&n=name How can I add/change the rule to stop calls to website.com/blog/login.php from rewriting?   Answer Per Shane's comment, and looking closer at the regex: RewriteRule ^([^/]*)/([^/]*)$ /index.php?id=$1&n=$2 [L] 1 First Expression ^([^/]*) ^ = start string ( ) = group [ ] = match ^ = not "/" * = 0 or more of the preceding 2 slash / 3 Repeat previous expression ([^/]*) 4 end string $ So to keep /blog/ from rewriting: match low (HowTos)