gpt4 book ai didi

amp-html - 如何修复: Referenced AMP URL is not an AMP

转载 作者:行者123 更新时间:2023-12-03 06:37:47 28 4
gpt4 key购买 nike

搜索控制台添加了一系列“引用的 AMP 网址不是 AMP”问题。

如果我使用 AMP Test我得到:

Not a valid AMP page error

但是,当我 checkin https://validator.ampproject.org/时它显示:

Validation Status: Pass

以下是 Search Console 认为不是有效 AMP 网页的部分网址的列表:

我不明白 Google 希望我解决什么问题。

最佳答案

也要在这里添加答案...您可以尝试类似于 this page 中描述的内容。其中讨论了移动网站与桌面网站的重定向。特别是这一点:

<link rel="alternate" media="only screen and (max-width: 640px)" href="http://m.example.com/page-1">

不过,您已经正确设置了规范和 amphtml 链接,并且如果您通过 amphtml 链接运行非 AMP 页面,则 AMP 测试会检测到 amphtml 链接 - 我认为这只是您的重定向杀死了它。如果您放弃正在进行的 302 重定向并再次运行 AMP 测试,它可能会验证。

您可以完全放弃重定向,因为 Google 会在您的 header 中抓取并找到 amphtml 链接,并将其提供给移动用户的搜索结果。如果您还担心将直接访问者重定向到您的 AMP 版本,那么我上面链接的备用链接选项可能值得一试。

关于amp-html - 如何修复: Referenced AMP URL is not an AMP,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51618782/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com