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.

link|improve this question
feedback

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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