AMP网站的SEO 关于“备用网页”应该如何处理?

AMP网站的SEO 关于“备用网页”应该如何处理?

谷歌Search Console“网页索引编制”报告中,如果有“备用网页(有适当的规范标记)”的提示,应该怎么处理呢?

相应网页被标记为另一网页的备用网页(即该备用网页是一个 AMP 网页,它可以是桌面版本的规范网页,或者是桌面版本规范网页的移动版本,还可以是移动版本规范网页的桌面版本)。该网页正确地指向了已编入索引的规范网页,因此您无需执行任何操作。Search Console 不会检测网页的备用语言版本。

如何使用 rel="canonical" link 元素方法指定规范网址

rel="canonical" link 元素(也称为“规范元素”)是指在 HTML 的 head 部分中使用的元素,用于指明另一个网页可体现该网页上的内容。

假设您想将 https://example.com/dresses/green-dresses 设为规范网址(即使有很多个网址指向该内容),那么您可通过执行以下步骤,将此网址指定为规范网址:

1.将具有 rel="canonical" 属性的 <link> 元素添加到重复网页的 <head> 部分中,并使其指向规范网页。例如:

<html>

<head>

<title>Explore the world of dresses</title>

<link rel="canonical" href="https://example.com/dresses/green-dresses" />

<!-- other elements -->

</head>

<!-- rest of the HTML -->

2.如果规范网页有采用不同网址的移动版变体,请为其添加 rel="alternate" link 元素,并使该链接指向此网页的移动版:

<html>

<head>

<title>Explore the world of dresses</title>

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

<link rel="canonical" href="https://example.com/dresses/green-dresses" />

<!-- other elements -->

</head>

<!-- rest of the HTML -->

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值