I am trying to write a PHP extension that executes some operations for specific requests.
The problem is that, even if the handlers are set correctly for PHP to run, unless the request URL is mapped onto an existing file, it just displays a 'Not Found' error page, skipping the extension code.
Even though this might sound like a bogus usage of PHP, I really want PHP to run, regardless if a PHP script exist or not in the server.
Is there a directive I can use to suppress 'Not Found' error pages for a given regex match, without using redirects? If not, how could I achieve this using redirects?