I have a slight problem with my server concerning Apache's ErrorDocument feature. When I try to specify it and write a bogus address, I get two different results: 1. If the file is something like /bogus.html or /nonexistant/bogus.html, the proper ErrorDocument shows up. 2. If on the other hand I request a file similar to /bogus.php, the server's standard message is displayed instead of my file. Can this be fixed easily I then wonder.
Hi,
do you use the cgi version of php ?
Do you get an 500 error, like "Internal server error" or the standard 404 error ?
If you get an internal server error then you could try to specify an error document for error 500.
The error is 404 not found in both cases. As long as the file is of type php, the server will not redirect to my specified page. (Which is specified by ErrorDocument 404 http://www.zshrine.com/404error.php in .htaccess)