刚开始学.htaccess文件和目录级重写,请教个可能比较菜的问题,就是发现不能在里面使用相对路径,比如说,用
ErrorDocument 404 http://localhost/test/notfound.html
就没有问题,文件不存在时能正常转到此页面;但教程上使用的都是相对路径啊,比如
ErrorDocument 404 /notfound.html
在我本地测试就会出现错误提示
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.其它比如重写也存在相应的问题。请问是什么地方设置的问题或是要加什么语句么?