Forum Moderators: open
I believe you can do this by putting a .htaccess file in each of the top directories for each
of the two separate "branches" you want to define. Then define the ErrorDocument you want to use
only for that directory and the directories below it. This is sometimes called a "per-directory
.htaccess".
Remember that in order to return a proper 404 code to the user's browser, the path given for the
ErrorDocument should be a relative path, i.e. it should NOT contain a method and domain, such as
"http://www.yourdomain.com", only the "file path" on your server, such as "/my_404_page.html".
ErrorDocument is documented in the Apache Core Features documentation.
HTH,
Jim
For anyone else intereted in the documentation jdMorgan mentions, I found it here [httpd.apache.org].