View Categories

How to create custom error pages in DirectAdmin

< 1 min read

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:

  1. Log in to your DirectAdmin control panel by accessing https://yourdomain:2222
  2. Locate and click the Custom Error Pages link
  3. Here you can edit four error types:
    – 401 Unauthorized
    – 403 Forbidden
    – 404 Not Found
    – 500 Internal Server Error
  4. Let’s say you want to edit the 404 file. Click the 404.html link.
  5. 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.
  6. Test it by accessing a file that doesn’t exist on your server, like domain.com/test1234.html

Powered by BetterDocs