Custom 404 page managed by CMS

Posted by Community Admin on 04-Aug-2018 15:56

Custom 404 page managed by CMS

All Replies

Posted by Community Admin on 31-May-2012 00:00

I am on Sitefinity 5 and I would like to perform the basic task of setting up a custom 404 page that is managed in the CMS. I would prefer this over a static HTML page so that the user has access to widgets on the site template like the main navigation. I setup the custom errors like so:

<customErrors mode="RemoteOnly" defaultRedirect="/error">
    <error statusCode="404" redirect="/page-not-found" />
</customErrors>

And when I go to a url that should 404 it is redirected to this as it should:
www.mydomain.com/page-not-found?aspxerrorpath=/my/invalid/url

This displays the standard IIS 404 page. When I create a CMS page called "Page Not Found" that has the url "page-not-found" the IIS 404 page is still displayed and the url does not redirect. The url will say like this:
www.mydomain.com/my/invalid/url

Ideas?

Posted by Community Admin on 01-Jun-2012 00:00
This thread is closed