I have a simple ".htaccess" file which needs to do two simple things;
It needs to allow php in normal htm and html files, and use my customized error pages.
The following code is the contents of my entire .httaccess file:
ErrorDocument 400 /error/error400.htm ErrorDocument 403 /error/error403.htm ErrorDocument 404 /error/error404.htm ErrorDocument 500 /error/error500.htm AddType x-mapp-php4 .html .htm
This all works fine, except, the error pages don't work for incorrect urls in the home directory e.g. "www.example.com/nothing.htm" but incorrect urls after this do work e.g. "www.example.com/file/wrong.html" or "www.example.com/file/another_file/file3/nothing.php" etc.
If I take the "AddType x-mapp-php4 .html .htm" line out - the error pages do function correctly.
I'm not sure if I explained that very well, but if I did - is there anything wrong with the code?
Any help would be appreciated.