The situation is this: the CMS (source with close source code) does not use friendly URLs the way we want. It adds sub-maps and a static .aspx file, and we do not. Example: CMS recognizes this: /public/submap/bla/page.aspx? Id = CONTACT (the contact page in this example). But we need friendly URsL for this page: / contact .
My goal: before the CMS engine displays the page, the incoming request (/ contact) will change to the recognized CMS URL (/public/submap/bla/page.aspx?id=CONTACT), but the browser does not, see this.
I tried this on some pages using the HTTPModule (IHttpModule interface, event BeginRequest), but the only possible way is to redirect 300 to the browser (it will get "/ contact" and will redirect to /public/.../page.aspx?id= CONTACT, which is displayed on the browser toolbar).
Is there a way to "fake" a CMS engine that will recognize its own URL, but between the browser and ASP.NET a different URL?
Environment: IIS6 (Windows 2003) and .NET Framework 3.5 / 4.0.
source
share