开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜