|
Post by account_disabled on Nov 26, 2023 8:51:24 GMT
自动规范 URL 设置: 这是默认首选项,使用它通常没有什么坏处,但如果您需要引用来源,则需要更改规范 URL。 在 HTTP 标头中指定规范规则 2. 在 HTTP 标头中指定规范规则 对于 PDF 等文档站点或直接用于 PDF 文档,无法在页眉中放置 Canonical 标签,因为没有 <head> 部分。在这种情rl />; rel =“规范” 3. 在站点地图中指定规范 URL 谷歌指出,非规范页面不应 包含在站点地图中。只应列出规范的 URL。这是因为 Google 将站点地图中列出的页面视为规范页面。但是,他们并不总是选择站点地图中的 URL 作为规范 URL。 我们不保证接受站点地图 URL 作为规范,但这是为大型站点定义规范的一种简单方法,并且站点地图是告诉 Google 它在您的站点上发现哪些页面最重要的有用方法。 4. 使用 301 重定向设置规范 URL 当您想要将流量从重复范版本时,请使用 301 重定向。 假设您的示例页面可通过以下 URL 访问:age/ 选择一个 URL 作为 Canonical 并将所有其规范 URL 错误 常见的规范 URL 错误 规范化是一个有点复杂的问题。像这样,对于如何恰当地制定规则,存在着很多误解和误解。以下是尝试封圣时的一些常见错误: 错误#1:使用 robots.txt 阻止规范 URL 屏蔽 robots.txt 中的网址可防 电话号码清单 止 Google 机器人抓取该网址;这意味着他们看不到该页面上的规范标签。这仅仅规范化为系列中的第一页。相反,应该在所有分页页面上使用自引用规范 URL。我们可以这样解释,你有一篇文章,第2页等于第1页吗?它包含完全相同的信息吗?如果否,第 2 页必须指定其自己的规范 URL,第 1 页必须指定其自己的 2 个规范 URL。 您还可以使用 rel=prev/next 标签进行分页,这对于 Google 来说没有多大意义,但Bing 仍然积极使用它们。 错误 #5:不将 Canonical 标 签与 Hreflang 一起使用 Hreflang 标签用于指定网页的语言和地理定位。使用 hreflang 时,Google 规定您必须为每种语言页面指定语言标签和规范 URL。 最后的话 使用规范 URL 标签并不复杂,只是一开始可能会有点混乱。不要以为规范标签只是HTML代码,它们也是搜索引擎的索引信号。Google 喜欢将一切自动化,因此如果他们希望我们指定正确的 URL,那就表明规范 URL 的重要性以及可能有多少种变体。不要让 Google Bot 为您做出决定。
|
|