开发者

How to ignore .htaccess?

Is there a way to tell Apache to ignore other .htaccess files under current directory? For example:

/web/.htaccess [this is parsed, I would like to define the rule here]
/web/uploads/.htaccess [this should 开发者_如何学编程be ignored]


In your main apache config, add the directive AllowOverride None.

This will prevent it from looking at .htaccess files.

For more info, see http://httpd.apache.org/docs/2.0/mod/core.html#allowoverride

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜