DotNetNuke 将站点根 example.com/ 重定向到 example.com/Default.aspx - 为什么?

发布于 2024-10-07 08:22:45 字数 338 浏览 0 评论 0 原文

将 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 站点也没有这个问题。

我忽略了一些显而易见的事情。但什么?

After moving a DNN 4.3.7 website from a Windows 2003 to a Windows 2008 server (IIS 7), entering the URL automatically results in a redirect to Default.aspx. When you create a Google sitemap, the root node is named "Object moved" which is ugly.

There are no HTTP Redirects added to IIS 7. We are using Helicon ISAPI rewrite, but there are no relating settings either.

It probably has to do with IIS 7 because we did not have this problem on IIS 6. On the other hand, other non-DNN sites on the same server do not have that problem, neither do other DNN-sites on other IIS 7 servers.

I am overlooking something obvious. But what?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

忘东忘西忘不掉你 2024-10-14 08:22:45

希望您检查了 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文