Custom 404 page

Posted by 007dev on 09-Sep-2019 19:42

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?

All Replies

Posted by alan.wallace@oit.edu on 10-Sep-2019 15:23

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

Posted by 007dev on 14-Sep-2019 22:15

This fixes it. Thank you very much.

Posted by jread on 18-Dec-2019 21:33

Also note that Sitefinity 12.2 introduced custom error pages as a feature, www.progress.com/.../sitefinity-cms-12-2-7200-(official-release)

Docs page: www.progress.com/.../administration-custom-error-pages

This thread is closed