比如
http://www.qcbf.tk/post/2011/08/05/啊.aspx
要映射为http://www.qcbf.tk/post/2011/08/05/啊.html或者:http://www.qcbf.tk/啊.aspx映射为http://www.qcbf.tk/啊.html
\
我写的[ISAPI_Rewrite]
CacheClockRate 3600
RepeatLimit 32
RewriteRule *.html *.aspx
都不行.

解决方案 »

  1.   

    试下这个吧,
    1、http://urlrewriter.net/  下载解压缩后把Intelligencia.UrlRewriter.dll 文件添加引用到web工程里。
    2.web.config配置:
    <configSections>
      <!--UrlRewriter-->
      <section name="rewriter" requirePermission="false" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" />
     </configSections><system.web>
      <!--UrlRewriter-->
      <httpModules>
       <add type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter" name="UrlRewriter" />
            </httpModules>
    </system.web>
     </system.web> <!--UrlRewriter-->
     <rewriter>
      <rewrite url="~/test_([a-zA-Z]+).html$" to="~/Show.aspx?Code=$1" processing="stop" />
     </rewriter>
    其中: <rewrite url="~/test_([a-zA-Z]+).html$" to="~/Show.aspx?Code=$1" processing="stop" />若果code= abc的话,最终显示的结果为"虚拟目录名称/test_abc.html" 。如果吧.html替换成 .aspx那就是"虚拟目录名称/test_abc.aspx" 3.IIS配置:
    如果是用"虚拟目录名称/test_abc.aspx" 的话,不需要配置IIS. 使用了"虚拟目录名称/test_abc.html" 配置IIS的方法如下:
    http://urlrewriter.net/index.php/support/installation/windows-server-2003/ 
      

  2.   

    RewriteRule ^/post/2011/08/05/([u4e00-u9fa5]+)\.aspx$  /post/2011/08/05/$1.html [I]
      

  3.   

    [\u4e00-\u9fa5]
    漏了\
    ……
      

  4.   

    [ISAPI_Rewrite]
    CacheClockRate 3600
    RepeatLimit 32
    RewriteRule (.*).html$ $1.aspx 这样写的..