Use this utility to define what will be done if a requested page on your site is missing or fails to open for any other reason. In order to specify your own Error Documents, you need to be slightly familiar with the server returned error codes:
Successful Client Requests |
Client Request Errors |
Server Errors |
To configure Error Pages:
- Go to Domain Setting > Web Options for the domain you need.
- Scroll down to find the Error option and click the Add icon on its right.
- In the form that appears, enter the error document settings:
For Unix accounts:
- Error Document Code: choose the one you need from the drop-down box.
- Message or URL: the path to the page with ERROR message
IMPORTANT: if ErrorDocument 401 is chosen in Error Document Code, the path must be relative to the local user's site home root - Type: Specify if the text in the previous field must be treated as a URL (Redirect) or as a text message (Message).
For Windows accounts:
Users will get a slightly different form to enter the path to the custom error page. Note that the path should be relative to the home directory, not to the virtual host directory.
If you check FILE:
- only static error page files can be used;
- the same error page files for this domain can be shared with other account domains.
For instance, with the following file path, all account domains will share this error page: pages\404_error.html
- use the "\" character as a delimiter in the file path;
- do not start the file path with "\".
If you check URL:
- it will allow you to use scripts (php/ASP) to dynamically generate error pages (alternatively, use static error page files for each type of error page);
- error page files for this domain can't be shared with other domains;
- "Path to Custom Error page" must be relative to the virtual host and start with "/".