More in this section

Forums / Developing with Sitefinity / Custom 404 page managed by CMS

Custom 404 page managed by CMS

2 posts, 1 answered
  1. Erik
    Erik avatar
    62 posts
    02 May 2011
    31 May 2012
    Link to this post
    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" />

    And when I go to a url that should 404 it is redirected to this as it should:

    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:

  2. Mark
    Mark avatar
    147 posts
    01 Jun 2010
2 posts, 1 answered