I\'m wondering if it\'s possible to use mod rewrite along with the ErrorDocument deceleration to customize the error pages depending on what type of file is requested.
I\'m using a standard htaccess ErrorDocument 404 to redirect users to a new page.In order to customize the 404, I need to know their referrer information (from the page they Tried to visit).
I just tried to redirect nonexistent files on the server to my custom 404 page but it only redirects .html files.
I want to take requests for missing files in a specific folder and redirect them to program.php in that folder.