Thursday, October 27, 2011

Helicon URL Rewrite module with Sitecore in Integrated pipeline mode

I recently happened to help a few customers resolve an issue with Helicon ISAPI URL Rewrite module when Sitecore runs in Integrated mode. So, I decided to make create a quick post about it as it took me awhile to figure out why this was happening. I even had to contact Helicon support channel to see if they had any insights into this issue.

The long story short Helicon module has to be configured in early request processing in order to work with Sitecore in Integrated pipeline mode. Here is the setting that you need to set up to make it happen: http://www.helicontech.com/isapi_rewrite/doc/NotificationType.htm

Now a few more details for those who still reading. So, why this becomes an issue when you run your Sitecore app in Integrated mode? The answer lies in the model that Integrated pipeline has. It’s different from Classic mode (aka IIS 6 model) which is based around ISAPI modules. For those who want to dive into details I’d recommend to read these articles: ASP.NET Application Life Cycle Overview for IIS 7.0 and Comparing Native-Code and Managed-Code Notifications [IIS 7].
As all native and managed modules can subscribe to the same processing events when you run you app in integrated mode, the Helicon ISAPI module turns out to be not the first one that accepts a request. The first event that gets raised is Authentication one. Sitecore Http Module gets subscribed to that event thus it’s the first one who intercepts the request. After the Http Module the request gets changed and it points to the physical file, which is a physical layout page for your dynamically constructed page represented by a Sitecore item. As a result Helicon module gets a “wrong” URL.

If you’re not satisfied with this workaround, consider using official Microsoft URL Rewrite module.

For those who are still looking for the solution it's a first link in this post Smile.

Hope this will save someone a bit of time.

8 comments:

Aren Cambre said...

We ended up going with URL Rewrite when we switched to Windows 2008 R2 earlier this year. We couldn't get ISAPI Rewrite to fire off before Sitecore started interpreting the URL.

Ivan said...

I think using URL Rewrite 2.0 is a right way to go if you run your Sitecore site in Integrated mode. But if you already have a solution working with Helicon module and don't have plans to invest into changing that process, turning early request processing mode is the only option to make it work.

raju said...


Ecorptrainings.com provides sitecore in hyderabad with best faculties on real time projects. We give the best online trainingamong the sitecore in Hyderabad.
Classroom Training in Hyderabad India

Anonymous said...

Thanks a ton for this Ivan! This came in handy for us.

Regards,
kiran

Sandeep SEO said...

Nice post, but it seems less, but very interesting to read and understand, hope post more blogs with more information Thank you...........visit our site for more details about Oracle Fusion Financials Courses.

Unknown said...

Thanks for sharing this useful information. for more details of Oracle training visit Oracle Fusion HCM Training in Hyderabad

Unknown said...

Thanks for sharing this useful information. for more details of Oracle training visit Oracle Fusion HCM Training in Hyderabad

Sannihitha Technologies said...

Very informative and well written post! Quite interesting and nice topic chosen for the post.
thanks for sharing this nice post,
MS Office training institute in hyderabad