日期:2014-05-17  浏览次数:20385 次

ISAPI_Rewrite正则表达式问题
我想把网站访问地址*.html转向*.aspx,请问这个正则表达式可以怎么写呢?就是比如在地址栏里输入http://localhost/test.html时,需要访问到http://localhost/test.aspx,输入http://localhost/aaa/test.html需要访问到http://localhost/aaa/test.aspx。
------解决方案--------------------
RewriteRule /(.*)\.html /($1).aspx

这样应该是可以的