如何忽略.htaccess?

Dzi*_*mid 2 apache .htaccess apache2

有没有办法告诉Apache忽略当前目录下的其他.htaccess文件?例如:

/web/.htaccess [this is parsed, I would like to define the rule here]
/web/uploads/.htaccess [this should be ignored]
Run Code Online (Sandbox Code Playgroud)

Spu*_*ley 8

在主apache配置中,添加指令AllowOverride None.

这将阻止它查看.htaccess文件.

有关详细信息,请参阅http://httpd.apache.org/docs/2.0/mod/core.html#allowoverride