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
    Registered:
    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" />
    </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?
  2. Mark
    Mark avatar
    147 posts
    Registered:
    01 Jun 2010
    Answered
2 posts, 1 answered