Forum Moderators: phranque
ErrorDocument 400 /error400.php
ErrorDocument 401 /error401.php
ErrorDocument 403 /error403.php
ErrorDocument 404 /error404.php
ErrorDocument 500 /error500.php
I've looked around and played with some Addtype but nothing seems to help.
Welcome to WebmasterWorld!
Strange problem...
In order to use AddType, your FileInfo override must already be active, and AllowOverride FileInfo is the only dependency I can find for ErrorDocument.
The only thing I can think of is that the php content-handler is being activated before some other critical link in the chain. Make sure that you have loaded the php module very earlier in the LoadModule list; It should be among the first modules loaded. Apache give reverse-priority to modules -- the first loaded are the last to run. Therefore, the php interpreter *may* be interfering with error handling.
This is just a guess, but we get a lot of questions due to the fact that people assume that they should just add php to the *end* of the list. This causes mod_rewrite and mod_auth and a bunch of other modules to appear to fail, because php then runs first before they can have any effect.
I'd suggest double-checking your AllowOverride setting and your LoadModule order, at least until someone who's seen this problem before drops in here and reads this thread...
Jim