Knowledgebase: PHP, ASP & CGI/Perl
How do I customise my error pages?
Posted by Diego Cousinet on 21 February 2011 10:25 AM

The method of customizing error pages (such as the ones displayed when the HTTP server returns 404 Not Found or 403 Forbidden) differs depending on if you have a Linux site or a Windows site.

Linux Sites:

Create a file named .htaccess containing lines in the form:

ErrorDocument 404 /errors/notfound.html

You can add extra lines defining different errors, for example:

ErrorDocument 403 /errors/forbidden.html

After creating this file, upload it to your root FTP folder.
Make sure the error pages you have defined exist on your server as well.

Windows Sites:

You will need to define HTTP error codes in your global.asa file.

(55 vote(s))
Not helpful

Comments (0)