This is a really quick post dedicated to the following scenario. You have either a standalone web app or legacy website. You want to host it underneath the web root with Sitecore instance configured and have Sitecore completely ignore the whole path (“/webapp”).


*Depending on the version of IIS, you may be experiencing different behavior.

There is a quick way to resolve this. Simply add the path to your standalone website to the “IgnoreUrlPrefixes” list:

 1: <!-- IGNORE URLS
 2: Set IgnoreUrlPrefixes to a '|' separated list of url prefixes that should not be
 3: regarded and processed as friendly urls (ie. forms etc.)
 4: -->

5: <setting name="IgnoreUrlPrefixes"

value="/sitecore/default.aspx|/trace.axd|.....|/webapp" />

Now if your are not feeling nerdy today, stop reading and go fix it!

For the ones who continue reading, I can tell that the “ignore url magic” happens within the <httpRequestBegin /> pipeline which is invoked when the request goes through Sitecore.

So before the ItemResolver is hit, the “IgnoreList” processor would read the value of the “IgnoreUrlPrefixes” setting and figure out whether the pipeline needs to be aborted or not:

 1: <httpRequestBegin>
 2: ...
* 3: <processor type="Sitecore.Pipelines.HttpRequest.IgnoreList, Sitecore.Kernel" />*
 4: <processor type="Sitecore.Pipelines.HttpRequest.SiteResolver, Sitecore.Kernel" />
 5: ...
 6: <processor type="Sitecore.Pipelines.HttpRequest.ItemResolver, Sitecore.Kernel" />
 7: </httpRequestBegin>

That’s all folks!