Configuring Custom Error Pages

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. 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 you’ve added or modified custom errors click “Update” button to update web site settings.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Backing up and restoring Hosting Space

Backing up and Restoring Hosting Space Open “Hosting Space home” page. Control...

Backing up and Restoring SQL Server Database

Backing up and Restoring SQL Server Database To backup SQL Server database open its properties...

Changing Account Details

Changing Account Details Open “User account home page”. To change account details...

Changing Account Password

Changing Account Password Open “User account home page”. In order to change your...

Configuring Custom HTTP Headers

Configuring Custom HTTP Headers “Headers” tab of web site properties allows you to...