For an application that is currently under wraps we needed to implement URL rewriting. We did this using a technique that involves the use of HTTP modules and is detailed on this site http://www.knowlegezone.com/documents/89/Simple-AspNet-Url-Rewriting-Tutorial-Http-Modules/
When we attempted to upload the HTTP module for some reason it simply wouldn’t fire and therefore our URL rewriting didn’t work.
After some furious Googling we came across the solution to this problem. Here’s the steps we took:
- Load up IIS management console
- Load properties for the affected site
- Open the Home Directory tab
- Click the application configuration button
- Click the Insert button and enter a path to the file that we wish to process requests. In this case the file is c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll
- Untick the option to check that file exists
- Click OK on all of the screens and close out of the management console
Your URLs will now be rendered accordingly using your HTTP module. Not simple but at least you know how!
