Home > .NET > ScottGu on Url Rewriting with ASP.NET

ScottGu on Url Rewriting with ASP.NET

February 28th, 2007

You just know when Scott Guthrie posts something on his blog that you have got to read it because it is going to be top quality. In this post Scott writes about URL Rewriting so this would allow you to use URLs such as www.seandeasy.com/5-podcasts-that-every-net-developer-should-be-listening-to/ instead of www.seandeasy.com/?p=57 which both point to the same point.

Now this blog uses PHP on Apache and the URL Rewriting is achieved using mod_rewrite rules. Some of the benefits of the URLs after the URL rewriting are:

  • More human friendly URLS
  • More search engine friendly URLs – before search engine bots used to hate URLs with ?param= in them probably not so much an issue any more.
  • Since the keywords are mentioned in the URL this helps increase your Google pagerank

I did some URL rewriting in ASP.NET 1.1 using a custom http handler. Scott writes about how to achieve URL rewriting in ASP.NET and goes on to say that in IIS7 it will be much easier to achieve full extensionless URL rewriting using a HttpModule. This will make it quite straight forward to have extension less URLs like http://www.seandeasy.com/5-podcasts-that-every-net-developer-should-be-listening-to/ under IIS.

In appears that on URL Rewriting, IIS is playing catch up with Apache.

Check out Scott’s post
Url Rewriting with ASP.NET

Categories: .NET Tags:
  1. No comments yet.
Comments are closed.