如:productList.aspx?productId=1这样的,我要把他重写为productList/1.html或者其他的也行

解决方案 »

  1.   

      <RewriterConfig>
        <Rules>
            <RewriterRule>
                <LookFor>~/productList/(\d+)\.html</LookFor>
                <SendTo><![CDATA[~/productList.aspx?productId=$1]]></SendTo>
            </RewriterRule>
        </Rules>
      </RewriterConfig>
      

  2.   

    http://msdn.microsoft.com/zh-cn/library/ms972974.aspx
      

  3.   

    ^http\://[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(/\S*)?$