重写的地址为http://localhost:7737/web/expo/
实际的地址为http://localhost:7737/web/expo/index.aspx
<rewrite url="" to="$1/index.aspx" />
前面的应该怎么写呢??

解决方案 »

  1.   

    那不是在IIS 里设置默认网页 index.aspx   就行了吗?
      

  2.   

     <Item LookFor="/web/expo/(\d+).html" SendTo="/web/expo/index.aspx"></Item>试试
      

  3.   

    <Item LookFor="/web/expo/" SendTo="/web/expo/index.aspx"></Item>这样呢
      

  4.   

    这样是可以的,但会影响我其他页面比如:http://localhost:7737/web/expo/news-12.aspx
    还有能不能写一个通用的的呢,我其它的页面也有这种情况例如:http://localhost:7737/web/product/
      

  5.   

    我自己写了一个
    <rewrite url="(.+)+/$" to="$1/index.aspx" />
    但效率不行,页面很长时间才能打开