开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜