现在我在我的httpd.conf文件中有以下内容:
ErrorDocument 404 /index.html
这工作,但我需要一个额外的规则,也将处理我的debuggingpath。 例如,如果我请求
http://www.mypage.com/debug/page-that-does-not-exist.html
我希望它redirect到:
/debug/index.html
而不是我的文档根目录中的索引。 什么是最简单的方法来完成这个?
<Directory /debug> ErrorDocument 404 /debug/index.html </Directory>