When trying to access a non-existent page / file in a domain, do you get an additional 404 Not Found error which should actually be redirected to an ErrorDocument ?
For Eg, when I try to access a non-existent file within my account
I get the following :
Not Found :The requested URL /~joelta/noactualfile was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
How do I remove the above error log for the error document ? ( the one in red font )
Use the following lines in the .htaccess file of the domain :
=============
ErrorDocument 400 default
ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 410 default
ErrorDocument 500 default
=============
This should do the trick !