With IIS 6 and ASP.NET 2.0 it is very doable. What you will need to do is setup a wildcard mapping so that all requests hit the ASP.NET engine. Then override the OnMapUrl method (name might be off, don't have any references in front of me) to override the incoming urls.
Another idea would be using the Global.asax and catch custom URLs like e.g. that way:
string RawUrlPath = Request.RawUrl.ToString();
int PrIndex = RawUrlPath.IndexOf("MyCustomString");
if (PrIndex > 0)
string PR = RawUrlPath.Substring(34, 1); // 48 34
if (HttpContext.Current.Request.QueryString["Page"] != null)
string Page = HttpContext.Current.Request.QueryString["Page"].ToString();
Context.RewritePath("page.aspx?PR=" + PR + "&Sort=None&Page="+Page+"");
I've been playing with a commercial urlrewriter - you can download a trial version from http://urlrewriter.net. The trial one is locked down to localhost only which means I can't trial it on a production site, but the functionality I've seen in playing with it is pretty cool.
There is also a lesser, free one I saw at http://www.urlrewriting.net, but I gave up on it.
If you want to roll your own I have some code on my blog you can rip off here: http://mark.silverbullet.com.au/index.php?itemid=21 I have used this in a few projects, always with success. A word of warning: If you rewrite urls you will have problems with submitting forms from pages where you've rewritten the url. You'll get an error message about the viewstate being corrupted. Have a look here for my fix (code is there, just rip it off):
Have fun ;o)
I, too, have been using IISReWrite with a huge amount of success - it's a very clever little tool.
Depends. A friend bought a dedicated Windows box and it was included in the deal. I pay him for space. So, it was included.Originally Posted by RageMan