Reputation: 953
I've seen some .NET sites that obviously are using some sort of URL-rewriting method, but the one that intrigues me the most are ones that look like:
http://www.somesite.com/pages/an-example-page.aspx
I have previously used "UrlRewritingNet.UrlRewrite", but that requires that the database primary key integer be located somewhere in the requested URL.
Is there any other way to perform this? I am using ASP.NET 3.5
Thank u!
Upvotes: 0
Views: 400
Reputation: 192637
You can use Ionic's Isapi Rewrite Filter (IIRF) on IIS5, IIS6, and IIS7.
Free, open source. uses mod_rewrite-like syntax. Works with ASPX, or PHP, or ASP, or whatever you run on the server. Good documentation.
Upvotes: 0
Reputation: 1401
There is a System.Web.Routing addition in the new MVC Framework you can use to do it in 3.5 or I believe it is included in the 3.5 SP1 install.
http://msdn.microsoft.com/en-us/library/system.web.routing.aspx
Upvotes: 2