I have a web application. I use sso for authentication. I put the code showed below in web.config page.
<authorization>
<deny users="?">
</authorization>
<authentication mode="Forms">
<forms loginUrl="https://sso.***.***.***/login" timeout="30" defaultUrl="~/Index.aspx" cookieless="UseCookies"
slidingExpiration="true" path="/" />
</authentication>
<location path="index.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
If users click http://website.com/index.aspx , no login needed. but other pages, they need login first(go to sso page). This works well. My problem is if user click http://website.com/ ,they still need go to login first. That's not what I want. I need it will go to index page directly.
Please help