Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我第一次调整我的.htaccess文件,遇到了我的自定义 404 页面无法加载的问题,因为我将指令放在Options -Indexes指令之后ErrorDocument 404。看到订购指令不管不顾很容易破坏预期的行为,是否有任何在线资源详细说明指令的正确顺序或至少标准顺序应该是什么?
.htaccess
Options -Indexes
ErrorDocument 404
在谷歌搜索和快速扫描 Apache 文档后,我找不到任何东西。
我的错 - 实际问题是我在与指令相同的行上使用了注释。