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

Changing IIS Settings: Custom 404 Error Pages (Foundation)

IIS

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


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

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:
Sample Error Page
This example assumes that you created your own error page, called it notfound.html or 404.html.
  1. Log in to Foundation and go to the Hosting Tab.
    Hosting Tab in Foundation
  2. From the Windows Tools on your left navigation menu, select the IIS Administration Console option.
    IIS Administration Console from the left navigation
  3. Go to the Custom 404 Error Page section.
    Custom 404 Error Page in IIS Administration Console
  4. Enter the path to the custom error page from your home directory in the form /notfound.html or /error/notfound.html.
    Enter the Custom 404 path
  5. Click on the Update button.
    Click the Update button
  6. After updating, you will get a confirmation message.
    Confirmation Message
Chat
Close