如何在 Magento 的主页或 CMS 页面上取消索引跟随分层导航?

How to NO INDEX FOLLOW layered navigation on a home or CMS page in Magento?

我在主页上显示的不同排序和订购产品状态下多次为我的主页编制索引时遇到了问题 Google。我网站的 google 中出现的链接是这样的。大约90次。显然,我不希望我的主页被索引 90 次。

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

如何确保这些重复的内容页面从 google 中消失?我在 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>

到目前为止,我所拥有的 done/tried 顺序为:

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

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

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

<cms_index_index>
    <reference name="head">
        <action method="addLinkRel">
            <rel>canonical</rel>
            <href>http://domain.com/</href>
        </action>
    </reference>
</cms_index_index>