gpt4 book ai didi

ajax - 避免在谷歌上为存档页面点击重复内容?

转载 作者:塔克拉玛干 更新时间:2023-11-03 02:28:21 27 4
gpt4 key购买 nike

我网站上的每篇博文 -- http://www.correlated.org -- 在其自己的永久链接 URL 中存档。

在每个存档页面上,我不仅要显示存档帖子,还要显示之前发布的 10 篇帖子,以便人们可以更好地了解博客提供的内容类型。

我担心的是 Google 和其他搜索引擎会将这些其他帖子视为重复内容,因为每个帖子都会出现在多个页面上。

在我的另一个博客上 -- http://coding.pressbin.com -- 我曾尝试通过将较早的帖子加载为 AJAX 调用来解决这个问题,但我想知道是否有更简单的方法。

有什么方法可以向搜索引擎发出信号,告知不应将页面的特定部分编入索引吗?

如果没有,是否有比 AJAX 调用更简单的方法来完成我想做的事情?

最佳答案

警告:这尚未经过实际测试,但根据我对 Google 网站管理员中心博客和 schema.org 文档的阅读,应该可以正常工作。无论如何...


这似乎是使用 microdata 构建内容的一个很好的用例。 .这涉及将您的内容标记为 Rich Snippet Article 类型的,像这样:

   <div itemscope itemtype="http://schema.org/Article" class="item first">
<h3 itemprop="name">August 13's correlation</h3>
<p itemprop="description" class="stat">In general, 27 percent of people have never had any wisdom teeth extracted. But among those who describe themselves as pessimists, 38 percent haven't had wisdom teeth extracted.</p>
<p class="info">Based on a survey of 222 people who haven't had wisdom teeth extracted and 576 people in general.</p>
<p class="social"><a itemprop="url" href="http://www.correlated.org/153">Link to this statistic</a></p>
</div>

请注意使用 itemscopeitemtypeitemprop 来定义页面上的每篇文章。

现在,根据schema.org ,由 Google、Yahoo 和 Bing 支持,搜索引擎应尊重上面 itemprop="url" 描述的规范 url:

Canonical references

Typically, links are specified using the element. For example, the following HTML links to the Wikipedia page for the book Catcher in the Rye.

<div itemscope itemtype="http://schema.org/Book">
<span itemprop="name">The Catcher in the Rye</span>—
by <span itemprop="author">J.D. Salinger</a>
Here is the book's <a itemprop="url"

href="http://en.wikipedia.org/wiki/The_Catcher_in_the_Rye">Wikipedia page.

因此,当以这种方式进行标记时,Google 应该能够正确地归因于哪个内容属于哪个规范 URL,并相应地在 SERP 中对其进行加权。

完成内容标记后,您可以使用 Rich Snippets testing tool 对其进行测试,这应该可以让您在将网页投入生产之前很好地了解 Google 对您网页的看法。


附注为避免重复内容惩罚,您可以做的最重要事情是修复永久链接页面上的标题。目前他们都阅读“相关 - 发现令人惊讶的相关性”,这将导致您的排名受到巨大冲击。

关于ajax - 避免在谷歌上为存档页面点击重复内容?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6507067/

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