使用了URLRewriter.dll但我要 aa11.aspx 转向 bb.aspx?id=11 很好做到 但我想 ~/china/userno/ 转到 ~/userno/index.aspx?userno=userno 就做不到了,还有 aa11.html 转向 bb.aspx?id=11 也不行请问各位大虾们,如何解决 小弟我用的是 03谢谢!

解决方案 »

  1.   

    看看你webconfig的那些配置
    另外htm的需要添加映射
      

  2.   

    <configSections>
     <section name="RewriterConfig" type="URLRewriter.Config.RewriterConfigSerializerSectionHandler, URLRewriter" />
    </configSections> 
    <RewriterConfig>
    <Rules>
    <RewriterRule>
    <LookFor>~/dd(\d+).shtml</LookFor>
    <SendTo>~/showerror.aspx?msg=$1</SendTo>
    </RewriterRule>
    </Rules>
    </RewriterConfig>  <httpModules>
    <add type="URLRewriter.ModuleRewriter, URLRewriter" name="ModuleRewriter" />
      </httpModules>