A
A
Alexey Lebedev2015-08-04 17:57:34
Domain Name System
Alexey Lebedev, 2015-08-04 17:57:34

Can I display my error when the site is unavailable?

Instead:
e019c2218dbb4d31b349ace9dcc157fa.png
Let's say a company phone number or a link to an alternative site.
It is possible with perversions of DNS, WebCache, manifest

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
LittleFatNinja, 2015-08-04
@LittleFatNinja

No

S
Saboteur, 2015-08-04
@saboteur_kiev

This error is thrown by the browser, not your site.
You can only override the errors that your web server throws.
For example, "invalid page", when you try to go to a URL that is not registered with you.
But the timeout means that your server is not responding, how can it give any error at all? It's already on the client side.
Here are the errors that can be overridden from the server side:
400 Bad Request
401 Authorization Required
403 Forbidden
404 Not Found
500 Internal Server Error

R
Ruslan Fedoseev, 2015-08-04
@martin74ua

You can't cover this error. Because this error occurs when your site cannot be contacted.
In general, you need to define errordocument on your virthost;)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question