Hur skapar jag anpassade felsidor?

In order to divert such error to your own custom page, simply add a single line to your .htaccess file with the following format: ErrorDocument [error number] [URL of custom page] For example, to divert the 404 Not Found error to my custom page notFound.html (in the same directory) the line would read: ErrorDocument 404 /notFound.html Your custom pages do not have to be in the same directory as your .htaccess file, provided that they can be accessed via the URL; you may, for instance, have an entry like: ErrorDocument 401 /errorpages/needAuth.html indicating that the error page is stored in a directory errorpages under the root directory of your site. You may have as many custom pages as you wish, simply add each one on a separate line of your .htaccess file.

Gör någon glad idag!