HTML<标题>在使用 Plesk 管理的重定向站点上无法正确显示

发布于 2024-10-01 14:09:19 字数 263 浏览 3 评论 0原文

我有一个网站,我为其购买了 5 个独立的域名。 Plesk 面板已设置为其中一个为主域,另外 4 个重定向至此。

我遇到的问题是,如果您通过主域访问该网站,该网站的标题标签 ("") 将按照我的设置显示,但是如果您通过其中一种重定向访问该网站,它只会显示为 URL。

如何解决此问题,以便无论如何访问网站都显示正确的 </code>?

谢谢

I have a site that I have 5 separate domains bought for. The Plesk Panel is set up so that one is the main domain and the other 4 redirect to this.

The problem I have is that if you go to the site via the main domain, the site’s title tag (<title>""</title>) displays as I have set it to, but if you visit the site via one of the redirections, it simply displays as the URL.

How can this be fixed so that the proper <title> displays no matter how the site is accessed?

Thanks

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

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

发布评论

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

评论(2

影子的影子 2024-10-08 14:09:19

看起来您已帧转发其他域。首先,除非你有理由,否则这对于 SEO 和许多其他事情来说都是一个坏主意。您可能想要选择标准重定向。

不过,如果您必须以这种方式使用它,请打开每个重定向域的 httpdocs 目录。您将看到完成 iframe 重定向的 index.html 文件。只需设置他们的 </code> 即可。

Looks like you frame-forwarded the other domains. First, unless you have a reason, this is a bad idea for SEO and many other things. You may want to select the standard redirection.

Nevertheless, if you must use it that way, open up the httpdocs directory for each redirected domain. You will see index.html files in which the iframe redirection is done. Just set their <title>s.

薯片软お妹 2024-10-08 14:09:19

您的主机可能在重定向页面上使用框架,为您提供重定向到的页面上的框架。如果是这种情况,您可以使用 frame-busting 脚本。

Your host may be using frames on the redireciton-page, giving you frames on the page you've been redirected to. If this is the case, you could use a frame-busting script.

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