Hi all,
I need to know how to "throw" an 404 error, when users are trying to acces a .php-page, that does not exist.
Right now my .htaccess looks like this:
ErrorDocument 403 /error/403.php
ErrorDocument 404 /error/404.php
Options -Indexes
I works fine you try to access e.g. a page called test.html, and that page doesn't exist, but if you try to access test.php (which doesn't exit either) you get the following error from PHP:
Fatal error: Unable to open e:\wwwroot\test.php in Unknown on line 0
It looks like PHP doesn't care about the contents of .htaccess?
I use Win2K, Apache 1.3.19 and PHP 4.x
Hope someone has the answer,
Kenneth