【发布时间】:2014-03-20 19:35:01
【问题描述】:
您好,如何将错误 404 重定向到带有 .htaccess 的主页?
示例: site.com 如果写成 site.com/some_site_notforund 而不是 404 会将我们重定向到主页
示例 2:
sadistic.pl 如果写入 sadistic.pl/some_site_notfound 而不是 404 会将我们重定向到当前页面
【问题讨论】:
-
这就是它?错误文档 404 /index.html
-
您是否已经将 AllowOverride 指令设置为 httpd.conf 以启用 .htaccess?
-
是的,好的,我有这个代码 ErrorDocument 404 / witout index.html 并且可以工作
-
@Taizo ito 你如何在 ClearOS 网络服务器中允许覆盖?
标签: .htaccess redirect web http-status-code-404