mod_rewrite: do not apply here
I am using mod_rewrite to put a category name in the URL, 开发者_如何学JAVAlike locahost/categoryName and also a location localhost/categoryName/locationName .
One question I had, and I'm sure it's easy to do as a rewrite rule, is how can I make it so that the rule does not apply to some specific directory, like: localhost/admin . In that case I want it to go to the actual physical directory.
Thanks
Make this your first rule:
RewriteRule localhost/admin - [L]
That means: match localhost/admin
, do nothing, last rule (only if matched).
精彩评论