尝试在本地主机上创build自己的errordocument …
在我的.htaccess中:
ErrorDocument 404 /errors/404.php
在errros目录中:404.php
根目录中的.htaccess。
但是,如果我tpye一些无效的url,如: http://localhost/test/index.pXX ,那么我得到一个错误:
未find
在此服务器上未find请求的URL /webtest/index.pXX。
此外,尝试使用ErrorDocument处理请求时遇到404 Not Found错误。
在404.php的第一行:
问题是什么?
谢谢。