如:http://localhost/test.aspx    映射到  http://localhost/test/
URLRewriter 不好实现,还有其它的吗?

解决方案 »

  1.   

    怎么不好实现?配置好config即可 
    <RewriterRule>
            <LookFor>...</LookFor>
            <SendTo>...</SendTo>
    </RewriterRule>
      

  2.   

    是伪目录如http://localhost/test/不是伪静态http://localhost/test.html
      

  3.   

    Context.RewritePath("")就可以了
    配置默认页面
      

  4.   

    不然
    .net目前不是支持无扩展名重写的,只有通过404重定向来实现
    IIS中配置404页面为网站中一动态页,在该页代码中获取URL并分析,然后使用RewritePath来重定向到实际页面
      

  5.   

    http://blog.csdn.net/FuWaer/archive/2008/01/23/2061666.aspxLZ这篇文章(.net 下的url重写)一切疑问都可以解决,也不会影响SEO
      

  6.   

    在iis中配置默认文档index.html
    在目录下创建index.html文件
    使用URLRewriter配置地址重写http://localhost/index.html to http://localhost/test.aspx   即可
                  
      

  7.   

    错了..http://localhost/test/index.html to http://localhost/test.aspx