Rewrite Application Path ASP.NET C#


How would I go about rewriting /path/default.aspx?i=ID to /path/ID/ without the ?i= part of the query url?

Best Solution

You can do this with an http module in 1.1/2.0:

ASP.NET 4.0 adds support for URL rewriting natively (it was added as part of 3.5 SP1 but only for ASP.NET MVC, now it's being made available for all ASP.NET apps).