.htaccess 404重定向无法正常工作

时间:2015-06-05 18:23:25

标签: html html5 .htaccess

所以我有这段代码:

# Do not remove this line, otherwise mod_rewrite rules will stop working

RewriteBase /

ErrorDocument 404 /errors/404.php

我在文件夹错误中有404.php文件,但它无效。

1 个答案:

答案 0 :(得分:0)

格式正确,应该可以使用。我建议的唯一一件事就是你应该确保你的.htaccess文件一个目录来自 / errors 文件夹,并确保你的404.php格式正确。< / p>

相关问题