M
M
macoff2017-09-29 03:41:10
Apache HTTP Server
macoff, 2017-09-29 03:41:10

How to display a custom 500 error page?

At the root of the site, there is an .htaccess with the following content:

ErrorDocument 403 /document-errors/403.html
ErrorDocument 404 /document-errors/404.html
ErrorDocument 500 /document-errors/500.html


403 and 404 are processed correctly, but if you create an error directly in htaccess, a standard 500 error is rolled out. I assume that by creating a syntax error I am preventing the server from getting to custom error pages.

From this, the following questions arise:
  1. If I'm right, how do I test for a 500 "correct" error?
  2. Is there a way to roll out my page even in case of a direct syntax error in .htaccess

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Exploding, 2017-09-29
@Exploding

500 error - this is exactly the error processing .htaccess directives ... as if the dead man read his farewell speech at his funeral. I don’t remember in my practice that at least sometime a special flaunted anywhere. beautiful 500 error page!
Of course, the deceased can also tie the ropes from the puppet, but is it necessary?))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question