Reputation: 49371
I am using mod_rewrite to put a category name in the URL, like 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
Upvotes: 0
Views: 352
Reputation: 124257
Make this your first rule:
RewriteRule localhost/admin - [L]
That means: match localhost/admin
, do nothing, last rule (only if matched).
Upvotes: 4