我正在本地服务器上运行一个网站(使用 WAMP 服务器),我正在尝试测试我的 404 页面是否可以工作,但是当我尝试导航到一个不存在的页面时,我收到一条错误消息:
The requested URL /dsf/sdkmf was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an
ErrorDocument to handle the request.
我的 404 页面与我的所有其他页面位于根文件夹中,并且我的 .htaccess 错误文档句柄被列为:
ErrorDocument 404 /404.html
我不知道为什么它给我这个错误更不用说如何修复它了,它与我的 WAMPServer 配置有关吗?