Posts

Showing posts with the label loading custom 404 page from webroot file

Displaying Custom 404 error page for urls with unallowed file extension in sitecore

Hey , there! Welcome to "Sitecore Series" Post is all about displaying custom 404 page for unallowed file extension requests. In Sitecore, we have an option to allow required file extensions and only the allowed file extensions are processed by Sitecore. (Not Sure? How to configure file extensions? Refer my previous post on allowing or blocking specific file extensions in Sitecore) When the custom 404 page is configured, Sitecore will process the URL and maps it with the associated file in webroot or item in Sitecore and displays it. If the file/item is not available, then it will display a custom 404 page. In case of unallowed file extensions, Sitecore will not process the request. Request is directly handled by IIS and redirects to default error page. Oh no! user is seeing default error page, not a good user experience.  Want to know how to configure a custom error page in this scenario? Yeah, this post is for you.   Refer below for the solution: Existing custom 404 page c...