如何在Magento的主页或CMS页面上进行分层导航?
我在谷歌为我的主页编制索引时遇到了很多麻烦,因为我在主页上显示的产品在不同的分类和排序状态下。谷歌上出现的我的网站链接是这样的。大约90次。显然,我不希望我的主页被索引90次如何在Magento的主页或CMS页面上进行分层导航?,magento,seo,duplicates,magento-1.9,layered-navigation,Magento,Seo,Duplicates,Magento 1.9,Layered Navigation,我在谷歌为我的主页编制索引时遇到了很多麻烦,因为我在主页上显示的产品在不同的分类和排序状态下。谷歌上出现的我的网站链接是这样的。大约90次。显然,我不希望我的主页被索引90次 http:/www.my-url.com/?dir=desc&limit=12&mode=list&order=name 我该如何确保这些重复的内容页从谷歌上消失?我在CMSblock中使用此代码来显示产品: <div class="custom-products-widget" style
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>
我现在的问题是:我还有什么可以或应该做的吗?我将如何从谷歌搜索结果中获取它们,并将它们删除索引。或者我现在就必须等待吗?我想你在寻找一个规范标签。有关更多信息,请参阅: 您可以在
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>
典型的
http://domain.com/
谢谢你的提示。这就是我需要让谷歌知道这是所有相同的内容。
<cms_index_index>
<reference name="head">
<action method="addLinkRel">
<rel>canonical</rel>
<href>http://domain.com/</href>
</action>
</reference>
</cms_index_index>