Pages

Tuesday, November 16, 2010

IIS6 and IIRF rewrite not honoring .NET tilde (~) to denote application root.

IIS6 and IIRF rewrite not honoring .NET tilde (~) to denote application root.
At IIS6,  I'm using the IIRF ASAPI filter to provide extension-less "friendly" url rewrites.
The end result I want is an IIS6 + IIRF installation of my web application to behave exactly the same as it does when installed on IIS7+ with Microsoft's urlrewrite enabled.

Problem description is:

"~/services/servicename" is rendered in html as "/services/servicename" when i'm actually on a root page which is at "/".
Pages from sub directories like  "/contact/email-us" that same url "~/services/servicename
" will render in html as "/contact/services/this-is-a-service"
Solution:

No comments:

Post a Comment