27 October 2012

PageNotFound 404 handling using a Sitecore Item as ErrorPage

The default implementation in Sitecore does not allow for a correct page header to be sent back on 404 handling, and does not allow a Sitecore Item to be target for the 404 error page.

This  HttpRequest Pipeline takes care of that.
Follow instructions in the comment to get it working, notice that the code to fetching the actual error page must be customized to your solution.

No comments: