4

Right now I have the following in my httpd.conf file:

ErrorDocument 404 /index.html

This works but I need an additional rule that will handle my debug path as well. For example, if I request

http://www.mypage.com/debug/page-that-does-not-exist.html

I want it to redirect to:

/debug/index.html

Instead of the index in my document root. What is the easiest way to accomplish this?

FoxMulder900
  • 143
  • 5

1 Answers1

4
<Directory /debug>
    ErrorDocument 404 /debug/index.html
</Directory>
TessellatingHeckler
  • 5,726
  • 3
  • 26
  • 44
  • I had to use the full path for the directory, but that did the trick! Talk about over-thinking it, I was looking into using mod rewrite haha. Thanks! – FoxMulder900 Jun 18 '15 at 02:14