DotNetNuke 将站点根 example.com/ 重定向到 example.com/Default.aspx - 为什么?
将 DNN 4.3.7 网站从 Windows 2003 移动到 Windows 2008 服务器 (IIS 7) 后,输入 URL 会自动重定向到 Default.aspx
。当您创建 Google 站点地图时,根节点被命名为“对象已移动”,这很丑陋。
IIS 7 中没有添加 HTTP 重定向。我们使用 Helicon ISAPI 重写,但也没有相关设置。
这可能与 IIS 7 有关,因为我们在 IIS 6 上没有这个问题。另一方面,同一服务器上的其他非 DNN 站点没有这个问题,其他 IIS 7 服务器上的其他 DNN 站点也没有这个问题。
我忽略了一些显而易见的事情。但什么?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
希望您检查了 IIS 站点上的“文档”选项卡。 “启用默认内容页面”可能就是这样。
在“主机设置”中,有一个“友好 URL”部分,这也可能是罪魁祸首。
Hopefully, you checked the Documents tab on the site in IIS. The "Enable default content page" might be it.
In Host Settings, there is a Friendly URLs section, which might also be the culprit.