Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.