0
我有一个在ASP.NET中开发的网站。我有它在IIS中承载,并说网址是www.web.com。无论何时我通过在浏览器中输入网址来请求此页面,我都会将其重定向到具有以下URL的登录页面,例如www.web.com/Login.aspx?ReturnUrl=%2f。URL不重定向到默认页
我在web.config中添加了以下内容以使Default.aspx成为默认页面。
<defaultDocument>
<files>
<clear/>
<add value="Default.aspx"/>
</files>
</defaultDocument>
此外,
<forms loginUrl="Login.aspx" defaultUrl="~/Default.aspx">
的页面出现在根文件夹,所以我尝试一些东西已经提到here。还有什么我失踪?一个解决方案或任何链接的方向将是有益的。
编辑:网站重定向当本地主机上
是我使用IIS 7.我现在尝试。没有工作仍然:( – Partha
你可以检查这个,看看是否有什么帮助:http://stackoverflow.com/questions/3824951/forms-authentication-ignoring-default-document – jmcclure
没有太大的不同,但包括64位删除处理程序: http://stackoverflow.com/questions/6948669/iis-7-not-serving-default-document http://stackoverflow.com/questions/10300083/why-is-iis-redirecting-as-if-the -default-document-isnt-set?rq = 1 http://stackoverflow.com/questions/7965600/authentication-ignoring-default-document?rq=1 – jmcclure