【问题标题】:How to hide part of page from Google indexation?如何从谷歌索引中隐藏部分页面?
【发布时间】:2018-12-03 16:20:30
【问题描述】:

我有页面,我需要从索引中隐藏部分页面。我该怎么做?我只需要隐藏页面的一部分,这是重要的细节。我不知道我该怎么做;我有一个想法 - 将此部分移动到其他 html 文件并使用 iframe 将其添加到主页; iframe 页面我将使用元标记阻止索引。它会起作用吗?

【问题讨论】:

    标签: html search indexing


    【解决方案1】:

    简单地说:你不能隐藏一部分,只能隐藏整页。

    把它放在robots.txt中,然后放在你服务器的根文件夹里

    User-agent: *
    Disallow: /pathto/page.html
    

    您可以做的另一件事是在指向您要隐藏的整个页面的链接上添加rel="nofollow"Info

    【讨论】:

      猜你喜欢
      • 2010-10-05
      • 1970-01-01
      • 1970-01-01
      • 2023-03-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-26
      • 2013-09-27
      相关资源
      最近更新 更多