Configuring Custom Error Pages

Custom Errors tab of web site properties allows you to customize HTTP error messages that are sent to clients when web server errors occur. It is possible to use generic default HTTP 1.1 errors, detailed custom error files that IIS provides, or create your own custom error files.

To add a new custom error click Add Custom Error button. Specify error code and optional sub-code, select handler type and then type URL or path of custom error page. Error code is a number between 200 and 900; the most popular ones are: 404 � page not found, 401 � unauthorized and 403 � forbidden. To the full list of HTTP error codes type http error codes in search engine.

If you select File for Handler type you should provide a path to error page file relative to web site root. For example, if 404.htm error page is located in the root of web site type \404.htm in Error content field (NOTE you MUST add an asterix * in the field next to the 404. so that it will go to the error page for all 404 errors otherwise the site will not work at all.) . If you select Redirect you have to provide absolute URL to destination page, for example http://www.site.com/error.aspx. Finally, if you select Execute URL then you have to provide URL of custom error page relative to the web site root, for example /error.aspx.

After youve added or modified custom errors click Update button to update web site settings.

  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

Change folder Permissions

How to change folder permissions to allow either asp or asp.net to read/write to a file or...

Redirect my domain name

To redirect your domain name to another URL follow these instructions. Login to the control...

Set the default home page

To set the default home page. Login to the control panel at http://control.apexhost.net.au...

Add host headers (Alias domain)

To add a host header Login to the control panel at http://control.apexhost.net.au Click on...

Private Folders

To create a private folder. This is used to password protect a folder, example...