Adding a Custom Error Page on a Windows Server

Within your control panel you have the ability to add custom error pages. Custom error pages allows you to define what happens if a browser is looking for a page within your site that is either missing or fails to open for one reason or another.

Adding a Custom 404 error page

The following steps are used to setup a custom error page on a Linux server. If you are needing help regarding a Linux server please visit the article here.

  • Within your hosting control panel click on the square icon that says “Web Options”. (if your not sure how to log into your hosting control panel please visit here)web OptionsIf you have more then one domain name within your account click on the domain you wish to add the 404 error page to.
  • Within the “Web Options” page scroll down and look for the row with the header “Error”. Within the “Error” row click on the “Add” icon.custom-error-page-001
  • Within the “New Error Document” window select the drop down box within the┬árow “Error Document Code”.custom-error-page-win-001Within the drop down box select the option “404|Not Found”. If you are looking to setup a different error code simply select the error code you are wishing to setup within this step.custom-error-page-win-002
  • Within the “Choose the document type” row you have the ability to select what you want to happen if a browser calls for a webpage but it is not found on the server. On a windows server you have ability to select file or to select URL. There are several differences between the two.custom-error-page-win-003
    • “File”: When you select file you have only the ability to select static error page files. You also have the ability to use the same error page file with other domains but if so the “Path to Custom Error page” has to be relative to the home directory the file is located in. A example of the relative path would be “\error\page.html”.
    • “URL”: The URL document type allows you to use scripting langauge (php/asp) to create dynamic error pages. These error pages cannot be shared with other sites and has to found in the same directory as the rest of the domain files.
  • If you have created a specific website page within your domain name to redirect viewers to when they have received a 404 error message you would select the option “URL” in the “Choose the document type” row and then the correct path. For our example we are using the file located at Then in the “Path to Custom Error page” we would need to input “/error/error.php”.custom-error-page-win-004
  • If you are using a static page located on another domain name you would want to select the option “FILE” in the “Choose the document type” and enter the link to the file listed in the other domain name.custom-error-page-win-005
  • After you have entered all of the information within the “New Error Document” screen click on the “Submit button.custom-error-page-win-006

These changes within your Windows server will take effect immediately.

Was this article helpful?

Yes (1)
No (0)

We're sorry you didn't find this article very helpful. Please help us improve it by leaving your feedback below.