Error pages are HTML pages that are displayed to your site visitors on special occasions. For example, if the visitor tries to access a page that doesn’t exist, the server can load a custom-made 404 error page.
To set up a custom error page in DirectAdmin:
- Log into your DirectAdmin panel
- Locate and click the Custom Error Pages link
- Here you can edit four error types:
– 401 Unauthorized
– 403 Forbidden
– 404 Not Found
– 500 Internal Server Error - Let’s say you want to edit the 404 file. Click 404.html link.
- A simple HTML editor will open. Make the desired changes. In the end, save the page by clicking the Save As button. Do not change the file name.
- Test it by accessing a file that doesn’t exist on your server, like domain.com/test1234.html