开发者

mod_rewrite: do not apply here

开发者 https://www.devze.com 2022-12-09 06:07 出处:网络
I am using mod_rewrite to put a category name in the URL, 开发者_如何学JAVAlike locahost/categoryName and also a location localhost/categoryName/locationName .

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).

0

精彩评论

暂无评论...
验证码 换一张
取 消