Why i am unable to redirect to the given page using Web.Config
I have written my web.config
file开发者_开发百科 as follows
<authentication mode="Forms">
<forms loginUrl="Index.aspx" defaultUrl="Login.aspx" timeout="20"/>
</authentication>
Which works good locally but when i am going to live i am unable to see the Index.aspx
as my default page. Instead of this i am able to see Default.aspx
i have. What's the problem behingdthis
To answer your question, and going on your comment.
Your users are going to Default.aspx
because in your IIS settings, Default.aspx
will be set as the default document. You want to specify Index.aspx
instead.
The authenitcation settings only take effect when you are disallowing access to certain areas of your website using Location Authorisation
精彩评论