I have an ASP.NET application with Forms Authentication enabled, deployed to an IIS 7 server. In the web.config file I have added <location>
sections to exclude the default documents (index.html/default.aspx) from authentication.
If I navigate directory to http://mysite.com/default.aspx
, it works as expected. It doesn't ask for authentication. However, if I navigate to http://mysite.com/
, it always redirects to the forms authentication login page.
I have the default document setup in IIS as default.aspx
, but it will always redirect if I don't include the default.aspx page in the URL.
Is there any way to allow prevent the redirect to the login page if a user is navigating to just the 'root' site?