Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

There is a possibility to se error pages by ErrorDocument like this:

ErrorDocument 403 /site.html
ErrorDocument 404 /site.html
ErrorDocument 500 /site.html

But is there any way to catch all errors at once? I’ve tried with empty strong and with “*”, but it did’t work.

share|improve this question

Not to my knowledge. You have to create a separate ErrorDocument handler for each of the HTTP status codes you wish to have a custom page for.

See Single ErrorDocument directive to catch all errors (.htaccess) on StackOverflow and Custom Error Responses on Apache's documentation.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.