简体   繁体   English

如何链接 Google AMP 页面

[英]How to link Google AMP pages

I want to link from 1 Google AMP page to another Google AMP page, to optimize the speed of the user's browsing experience.我想从 1 个 Google AMP 页面链接到另一个 Google AMP 页面,以优化用户浏览体验的速度。

I already read these articles: links to other AMP pages in an AMP article and https://www.ampproject.org/docs/fundamentals/spec and Link from AMP-Page to AMP-Page?我已经阅读了这些文章: AMP 文章中指向其他 AMP 页面的链接以及https://www.ampproject.org/docs/fundamentals/specLink from AMP-Page to AMP-Page? . . But these posts just cover whether one SHOULD link AMP to AMP, whereas I'm asking HOW to link.但是这些帖子只讨论了是否应该将 AMP 链接到 AMP,而我问的是如何链接。

Before I rewrite my links, what way should I link between AMP documents?在我重写链接之前,我应该如何在 AMP 文档之间进行链接? Like this:像这样:

https://www.foo.com/amp_document.html

or like this:或者像这样:

https://foo-com.cdn.ampproject.org/c/s/foo.com/amp_document.html

I'm not sure if Google will treat an AMP page that is visited from another internal AMP page differently than when the user visits an AMP page from Google's SERPs.我不确定谷歌是否会以不同的方式对待从另一个内部 AMP 页面访问的 AMP 页面,而不是用户从谷歌的 SERP 访问 AMP 页面。

You can link the AMP pages as您可以将 AMP 页面链接为

https://www.foo.com/amp_document.html https://www.foo.com/amp_document.html

URLs like像这样的网址

https://foo-com.cdn.ampproject.org/c/s/foo.com/amp_document.html

are created when a user visits the link directly from the search result.当用户直接从搜索结果访问链接时创建。 You don't need to bother about that.你不需要为此烦恼。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM