对于.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页面也能进行身份验证。