gpt4 book ai didi

apache - 如何忽略.htaccess?

转载 作者:行者123 更新时间:2023-12-01 00:40:53 25 4
gpt4 key购买 nike

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

/web/.htaccess [this is parsed, I would like to define the rule here]
/web/uploads/.htaccess [this should be ignored]

最佳答案

在您的主要 apache 配置中,添加指令 AllowOverride None

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

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

关于apache - 如何忽略.htaccess?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5897711/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com