I use ASP.NET and IIS 7.5 for my web development. As I am currently working on dynamic websites, the long-string-unreadable-URL like "/Feeds.aspx?Key=66a718c4-1982-43b1-9e47-afeddea650e4&FeedType=PAGE" has been a major complain from clients. Therefore, I decided to rewrite URL which shortens the raw URL to a menu-name-related form.
In order to implement URL rewrite, I create the module RedirectHttpModule based on some open sources found, and use a XML for URL mapping.
On top of that, web.config needs to be setup in the following way.
That’s pretty much good to go if you use IIS 5, which I seriously doubt if that’s the case. For IIS 7.5, the “HTTP Error 404.0 - Not Found” will keep popping up with error code “0x80070002” which was diagnosed as a mapping mistake. I tried many methods, including adding wildcard, until I found this: