这是我最近接触的,希望能给大家带来好处!
首先,配置节点,<configSections></configSections>中间添加节点<section>有name属性type属性中写这个Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter。
然后,在<system>中间添加<httpmodules>。在<add>中添加name属性,type属性(和上边差不多)Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter。
之后,你可以自己动手添加一个<rewriter>重写的节点,如果你明白正则表达式,那下面就明白了。例如:<rewrite url="~/img/[0-9].html$" to="~/images.aspx?CRid=1$" processing="stop">
其实,你多做几个例子,很快就会明白的,也没有多少东西。