Tuesday, November 22, 2011

404 & 301 Handlers in Sitecore - Blank page on Static HTML pages

Spent far too long working on a redirect piece for HTML pages in Sitecore today. Details at the link below - the behaviour was blank pages served by IIS 6 when mapping HTML requests to .Net so we could implement a custom 301 handler for HTML pages.

Solution involved putting a handler as below in the httpHandlers section of the web.config.

<add path="*.html" verb="*" type="System.Web.StaticFileHandler" />

No comments:

Post a Comment