Custom 404 page for multiple sites

Do you want to have custom error pages?  Have you followed the instructions to map your custom 404 page to the Kentico handler (Custom URL extensions and extensionless URLs) and it’s still not working?

 It’s possible that you are still receiving the default 404 page from IIS.

The first thing you can try, is to create a custom error page and specify the path to it at CMS Site Manager -> Settings -> Web Sites -> Page not found URL and after that change the mode in your web.config file:

<customErrors defaultRedirect="~/404/" mode="On">

If this doesn’t work, here is the last necessary change, add the following line to the System.Webserver section in the web.config file:

<httpErrors existingResponse="PassThrough" />
Share this article on   LinkedIn Google+

Martin Danko

Let me guide you on your journey of success. I will show you how to optimize your content production with Kentico Draft. Check out