我已经设置了我的.htaccess和一些捆绑重写,虽然当我去一个无效的目录,ErrorDocument 404已经设置,它只是在页面上显示"404“,没有其他,只是一个纯文本与"404”。
RewriteEngine on
RewriteBase /
RewriteRule ^404/?$ 404.php
ErrorDocument 404 404为什么它不显示第404页,如果我转到404.php或http://www.mydomain.com/404,它显示得很好,为什么它不显示该页?
发布于 2010-11-05 04:14:43
您需要重新格式化.htaccess,请参阅:http://www.javascriptkit.com/howto/htaccess2.shtml
正确的一行是:
ErrorDocument 404 /errors/notfound.htmlhttps://stackoverflow.com/questions/4100874
复制相似问题