UrlRewritingModule w/ Regular Expression Support for ASP.NET 2.0
Here is a really cool URL rewriting module for ASP.NET 2.0. You can configure it using regular expressions in your web.config file like so:
<urlrewritingnet
rewriteOnlyVirtualUrls="true"
contextItemsPrefix="QueryString"
compileRegex="true"
xmlns="http://www.urlrewriting.net/schemas/config/2006/01" >
<rewrites>
<add virtualUrl="^~/(.*)/Detail(.*).aspx"
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl="~/Default.aspx?language=$1&id=$2"
ignoreCase="false"/>
<add virtualUrl="^~/(.*)/(.*).aspx"
rewriteUrlParameter="StoreInContextItems"
destinationUrl="~/$2.aspx?language=$1&parameter=$2&dasistso=schoen"
ignoreCase="true" />
</rewrites>
</urlrewritingnet>
You can download both the source code and a compiled binary from here. Very cool and handy!
- Scott