1

在我的主页上显示的产品分类和订购的不同状态下,我在 Google 多次索引我的主页时遇到了麻烦。我的网站在谷歌中出现的链接是这样的。大约90次。显然,我不希望我的主页被索引 90 次。

http:/www.my-url.com/?dir=desc&limit=12&mode=list&order=name

如何确保这些重复的内容页面从谷歌中消失?我在 CMSblock 中使用此代码来显示产品:

<div class="custom-products-widget" style="padding-bottom: 0;">{{block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" category_id="5" template="catalog/product/list.phtml" columnCount="5"}}</div>

到目前为止,我按此顺序所做/尝试过的事情:

  • 当已经太晚了,谷歌已经把它全部索引了,我把它放在我的 robots.txt 中:

    Disallow: /*?*

  • 之后:我在网站管理员工具中从谷歌删除了所有网址,但它们回来的数量更多。

  • 昨天,在谷歌站长工具中,我确保不再抓取导致重复内容的 URL 参数。即:

    order
    dir
    limit
    mode

  • 我已将以下代码放在我的 local.xml 中,但我发现这仅适用于类别页面。

    <catalog_category_layered> <reference name="head"> <action method="setRobots"><meta>NOINDEX,FOLLOW</meta></action> </reference> </catalog_category_layered> <catalog_category_layered_nochildren> <reference name="head"> <action method="setRobots"><meta>NOINDEX,FOLLOW</meta></action> </reference> </catalog_category_layered_nochildren>

我现在的问题是:还有什么我可以或应该做的吗?我如何将它们从谷歌搜索结果中删除并取消索引。还是我现在只需要等待?

4

1 回答 1

1

我认为您正在寻找规范标签。有关更多信息,请参阅: https: //support.google.com/webmasters/answer/139066

您可以在您的 中添加带有 XML 的规范标签local.xml,例如在您的主页上:

<cms_index_index>
    <reference name="head">
        <action method="addLinkRel">
            <rel>canonical</rel>
            <href>http://domain.com/</href>
        </action>
    </reference>
</cms_index_index>
于 2015-11-27T17:48:47.360 回答