A blog about internet technologies, productivity tools for programmers. Ranging from Code Generation, Asp and Asp.Net to open source technologies such as MySql and Ruby on Rails.
Ok fast overview, you want to go from:
www.bla.com/bla.aspx?id=12&year=1999&month=2
to:www.bla.com/123.aspxor www.bla.com/123orwww.bla.com/123/id/12/year/1999/month/2
Here are your options:
URL Rewriting engines:
Simple + Regex through httphandlers: (Article)http://www.15seconds.com/issue/030522.htm
SES: aka no more ? and &http://weblogs.asp.net/skillet/archive/2004/05/04/125523.aspx
HTTP Module: ( recommended if your not going for mapping all extensions to asp.net)http://weblogs.asp.net/fmarguerie/archive/2004/11/18/265719.aspx
The following problems arise when you want to remove the .aspx part:http://scottonwriting.net/sowblog/posts/943.aspxand:http://scottwater.com/blog/archive/2004/09/08/IIS6_HttpCompress_NotSoFast
The solution seems to be to use ISAPI filters.
Free ISAPI Filter:http://cheeso.members.winisp.net/dl/IonicIsapiRewriter.zip
This uses PCRE (http://www.pcre.org) for the regular expression support.
Commercial ISAPI filter:http://www.isapirewrite.com/
Main advantage of this solution, are high class docs. http://www.isapirewrite.com/docs/
That's a great list!!! Thanks! I was just planning to look up stuff like this! Isn't blogging just great?! :)
Jup, same here. I saw a question on a mailinglist I'm on and while I was doing some research on how to do it I figured that I might as well go a little deeper and make a blog post out of it.
Thanks for the great list of resources. It really helped me look at the various options for transforming ASP.net links into search engine friendly links.