This is a really quick post dedicated to the following scenario. You have either a standalone asp.net 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.)
5: <setting name="IgnoreUrlPrefixes"
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:
* 3: <processor type="Sitecore.Pipelines.HttpRequest.IgnoreList, Sitecore.Kernel" />*
4: <processor type="Sitecore.Pipelines.HttpRequest.SiteResolver, Sitecore.Kernel" />
6: <processor type="Sitecore.Pipelines.HttpRequest.ItemResolver, Sitecore.Kernel" />
That’s all folks!