I want to take requests for missing files in a specific folder and redirect them to program.php in that folder.
This is a program I will use a lot in different places, and I would prefer to avoid specifying the name of the folder in the htaccess file.
I have tried just putting:
errordocument 404 program.php
but the result is that the browser just prints out "program.php" and doesn't execute program.php.
I understand why this is happening: based on the documentation at http://httpd.apache.org/docs/2.0/mod/core.html, url's that don't begin with a slash or http are interpreted as a text message.
The question is how to get around this limitation to be able to access the same folder.