Discover how to create custom 404 Error pages in the Microsoft IIS server 10. Our Server Management Support team is ready to assist.
Create Custom 404 Error Pages in Microsoft IIS Server 10
Custom 404 error pages improve user experience. It also helps maintain a professional web presence by hiding internal server paths from remote users.
Regardless of the IIS version, setting up a custom 404 page is an easy process.
Today, we will walk through the steps for setting up custom 404 error pages for different versions of Microsoft IIS.
An Overview:
Why Use Custom 404 Error Pages?
- It offers helpful navigation and maintains a consistent site look.
- It directs users to valid content instead of a blank error.
- Also, it prevents sensitive server path disclosures.
Additionally, securing your IIS environment with the right permissions, such as correctly configuring IIS_IUSRS, is crucial. Learn how IIS_IUSRS works and how to manage user access securely.
Custom 404 Error Pages in IIS 10
- First, open IIS Manager under Tools in the Server Manager from the taskbar.
- Then, expand the server name and Sites in the Connections pane.
- Next, click the site or application you want to configure.
- In the middle pane (Features View), double-click Error Pages.
- Now, right-click inside the Error Pages pane and choose Edit Feature Settings.
- Then, right-click the 404 status code entry and select Edit.
- Next, set Status Code to `404` in the dialog box.
- Now, choose Execute a URL on this site.
- Enter the relative path (e.g., `/customerror/404.html`) and click OK.
- Make sure the Edit Feature Settings dialog is set to Custom error pages.
- Finally, click OK to save changes.
Before making changes, it’s always a good idea to export your IIS configuration using AppCmd. This provides a safe rollback option if something goes wrong.
Custom 404 Error Pages in IIS 8.5
- First, launch IIS Manager.
- Then, expand the server name and Sites in the Connections pane.
- Choose the appropriate site.
- Now, double-click Error Pages in the center pane.
- Next, right-click in the pane and choose Add. Then, set the Status Code to `404`.
- After that, select Execute a URL on this site. In the File path field, input the relative URL to your custom page and click OK to apply.
[Need assistance with a different issue? Our team is available 24/7.]
Conclusion
Implementing a custom 404 page in IIS is a simple yet effective way to polish your site’s user experience and safeguard sensitive information.
In short, our Support Engineers demonstrated how to create custom 404 Error pages in Microsoft IIS Server 10.
0 Comments