日期:2014-05-18  浏览次数:20421 次

怎么进行html后缀的页面身份验证保护
对于.aspx的页面在web.config里面配置
<authentication   mode= "Forms ">
          <forms   loginUrl= "Login.aspx "> </forms>
</authentication>
<authorization>
          <deny   users= "* "/>
</authorization>
未登录时就能重定向到Login.aspx进行身份验证。但是这个配置对.html的页面无效,也是比如有1.html这个页面我输入   localhost/1.html   不登录还是能直接访问到。
请问怎么做才能使html页面也能进行身份验证。

------解决方案--------------------
设置对aspnet_isapi.dll的映射,让这个请求通过ASP.NET管道,参考

http://support.microsoft.com/kb/891028#
------解决方案--------------------
URL REWRITE