Custom 404 page - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

Custom 404 page

  • I looked up and down and tried a whole bunch of recommendations but can't get Sitefinity to simply return a custom 404 page. I have tried <httpErrors> and <customErrors> in the webconfig, none of which work. I have come across lots of examples showing aspx pages. Sitefinity pages are extensionless. Can someone kindly provide an up to date (Sitefinity 12) step by step for implementing custom 404s so that when a user searches for an unavailable page, the custom 404 is returned?

  • This is what my working configuration looks like:

    <httpErrors errorMode="Custom" existingResponse="Replace" > <remove statusCode="404" subStatusCode="-1" /> <error statusCode="404" prefixLanguageFilePath="" path="/404-error" responseMode="ExecuteURL" /> <remove statusCode="500" /> <error statusCode="500" prefixLanguageFilePath="" path="/500Error.aspx" responseMode="ExecuteURL" /> </httpErrors>

    I also have a widget on the page at /404-error that returns the appropriate 404 HTTP status code, as described in the links at the bottom of:
    https://www.progress.com/documentation/sitefinity-cms/administration-custom-error-pages
  • This fixes it. Thank you very much.