【发布时间】:2014-05-16 06:23:22
【问题描述】:
我刚刚使用 httpd.conf 中的ErrorDocument 定义了错误页面。重新启动服务器后,我注意到当我输入像http://www.example.com/adirectory 这样的目录(不是文件)的地址时,Apache 给出了“301 Moved Permenantly”错误。删除 ErrorDocument 也没有做任何事情。访问这些 URL 的唯一方法是在 URL 的末尾包含 /,例如 http://www.example.com/adirectory/ 我如何允许在没有 / 的情况下显示 URL。谢谢,桑。
【问题讨论】:
标签: apache http-status-code-301 errordocument