Rewrite Application Path ASP.NET C#

asp.neturl-rewriting

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 asp.net 1.1/2.0:

http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx

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).

http://weblogs.asp.net/scottgu/archive/2009/10/13/url-routing-with-asp-net-4-web-forms-vs-2010-and-net-4-0-series.aspx