Custom error pages

You can create your own error pages on PHP hosting by adding a .htaccess file with an ErrorDocument line, e.g. for 404 errors.

It is possible to create custom error pages on PHP hosting.

This can be done by creating a “.htaccess” file in your root directory with the following content:

ErrorDocument 404 /minfejlside.php

This example is for “404 – File not Found” errors, but the principle can be used for all error codes (401, 403, 500 etc.).

Article from the support category: PHP

Other relevant articles