为什么IIS重定向仿佛默认文档未设置? [英] Why is IIS redirecting as if the default document isn't set?
问题描述
这是一个很小的事情,但它快把我逼疯了,我希望这一个IIS专家可以提供帮助。
This is a small thing but it is driving me crazy and I am hoping that an IIS expert can help.
该方案很简单:
- IIS配置,这样的Default.aspx是默认的文档
的位点。 - Forms身份验证是和loginUrl是的Default.aspx
和defaultURL是Default.aspx的 - 在web.config中,中的Default.aspx文档具有的权限*(任何人都可以访问)
当我浏览到该网站只用基本URL:www.somesite.com的URL回来了:www.somesite.com/default.aspx?ReturnUrl=%2f
When I navigate to the site with just the base url: www.somesite.com the URL comes back with: www.somesite.com/default.aspx?ReturnUrl=%2f
如果我浏览到的全名(www.somesite.com/default.aspx)它不具备RETURNURL。那么,为什么当IIS添加名字,我们得到怪异的重定向,但不是当我们键入?
If I navigate to the full name (www.somesite.com/default.aspx) it does not have the ReturnUrl. So, why, when IIS adds the name, do we get the weird redirect but not when we type it?
推荐答案
您需要添加<?让用户= /方式>
允许非登录用户过多
You need to add <allow users="?" />
to allow non-logged-in users too.
这篇关于为什么IIS重定向仿佛默认文档未设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!