PHP

Custom Error Pages

Add this code to the .htaccess file in the root directory of your website:

#display a custom error page:
ErrorDocument 404 /error-pages/404.html
ErrorDocument 403 /error-pages/403.html