Hi, I was wondering what the best method is for re-writing query string URL's, to perfect URL's, on a windows server using ASP.NET 2.0 with minimum server overhead. EG www.website.com?product=hotels&location=london to: www.website.com/hotels/london/ Thanks for your help.
You'll probably want to use an httpmodule to do it. Most utilize regular expressions in the web.config, so you don't need to recompile anything to change or add new rewrite rules. I wrote my own - it was only about 30 lines of code - but there also appear to be some fully functional ones that are free as well. This one looks good: http://www.urlrewriting.net