谁的地址重写,用的好些,给推荐一个
之前用过Intelligencia.UrlRewriter即http://www.urlrewriter.cn/的,不太稳定。
微软的UrlRewriter.dll记得是framework1.1,没有发新版。

解决方案 »

  1.   

    就它
    URLRewriter.dll
    <RewriterConfig>
    <Rules>
    Rules for Product Lister
    <RewriterRule>
    <LookFor>~Default.html</LookFor>
    <SendTo>~/Default.aspx</SendTo>
    </RewriterRule>
    <RewriterRule>
    <LookFor>~/Travel.html</LookFor>
    <SendTo>~/Travel.aspx</SendTo>
    </RewriterRule>
    <RewriterRule>
    <LookFor>~/Classic.html</LookFor>
    <SendTo>~/Classic.aspx</SendTo>
    </RewriterRule>
    <RewriterRule>
    <LookFor>~/Casual.html</LookFor>
    <SendTo>~/Casual.aspx</SendTo>
    </RewriterRule>
    <RewriterRule>
    <LookFor>~/Accessories.html</LookFor>
    <SendTo>~/Accessories.aspx</SendTo>
    </RewriterRule>
    <RewriterRule>
    <LookFor>~/Business.html</LookFor>
    <SendTo>~/Business.aspx</SendTo>
    </RewriterRule>
    <RewriterRule>
    <LookFor>~/NewProducts.html</LookFor>
    <SendTo>~/NewProducts.aspx</SendTo>
    </RewriterRule>
    <RewriterRule>
    <LookFor>~/TopSeller.html</LookFor>
    <SendTo>~/TopSeller.aspx</SendTo>
    </RewriterRule>
    <RewriterRule>
    <LookFor>~/product_detail.html</LookFor>
    <SendTo>~/product_detail.aspx</SendTo>
    </RewriterRule>
    Rules for Product Lister
    </Rules>
    </RewriterConfig>
      

  2.   

    UrlRewriter.dll记得是framework1.1  --------2.0的早出来了
    不太稳定可能是正则匹配有问题,或者写得不够严密导致的
      

  3.   

    ASP.NET伪静态页面的实现和伪静态在IIS0中的配置
      

  4.   

    不稳定跟服务器和你的项目设计有关,和urlRewrite无啥关系一址用:Intelligencia.UrlRewriter.dll
    没出现过问题
      

  5.   

    谢谢回复,我说的Intelligencia.UrlRewriter不稳定,是他有时会出现找不到新的地址。在本机调试时有时会出现。正在看微软的这个http://www.cnblogs.com/yoyiorlee/archive/2010/02/01/1661371.html另外有人用过Rewrite.dll(直接用ISAPI)(httpd.ini mtbnotif.dll Rewrite.dll  ) 吗,用过的给发点ASP.NET的例子吧
      

  6.   

    嗯 如果您觉得UrlRewriter.dll不稳定 就使用iirf吧 这个肯定稳定
    http://hi.baidu.com/zzticzh/blog/item/920d0424f7574c21c99559a5.html
      

  7.   

    URL重写