1. Knowledge Base
  2. >
  3. Results
  4. >
  5. Article

Changing IIS Settings: Custom Error Pages (Legacy)

IIS

Internet Information Services (IIS) is Microsoft's Web server. You can use the IIS Administration Console to set up custom error pages.

Designate a custom page to display for 404 error

When your website visitors click on a broken link or an unfinished page link, a page is displayed with a 404 error (File or directory not found). You can customize this error page to make it look like the other pages on your site, or to make it more friendly (for example, to say that the site is under construction and will be up shortly), and/or include a redirect to your home page. Here is an example 404 page from dzineblog.com:

Custom 404 error page

This example assumes that you created an error directory and your own error page, called it notfound.html, and placed it in the /error/ directory.

Create error directory for custom 404


Note: Note the path to your file, displayed in FileManager, circled in red, on the picture above. In this case, it's /error; yours may say /public_html/error or /ht_docs/error. You will need this full path, as it is displayed. In this example, the full path to the error file is: /error/notfound.html 
 

  1. Log in to the IIS Administration Console.
  2. Open the Custom Error Pages section.
  3. Enter the path to the custom error page from your home directory in the form /notfound.html or /error/notfound.html


    Important: You must enter the path to a specific html file. Entering only a directory path, such as /error, will not work for custom error pages. 
     

  4. Click Set Custom 404 Page.
  5. To return to the default page, clear the field, and then click Set Custom 404 Page.


Note: Setting changes take up to 2 hours to take effect. 
 

Chat
Close