【问题标题】:Magento Layered Navigation & SEOMagento 分层导航和 SEO
【发布时间】:2012-09-15 00:13:00
【问题描述】:

我对 Magento 分层导航和 seo 有疑问。

我们的网站似乎正在使用与属性相关的网址编入索引,例如 www.abc.com/exampleproduct?brand=69

这会产生大量重复内容的问题。有没有人遇到过这样的事情,是否有任何好的解决方案。 Incho 在这里写了一篇关于它的博客:http://inchoo.net/online-marketing/magento-seo-how-to-handle-problems-caused-by-layered-navigation/,但它并没有真正找到一个可靠的解决方案。

先谢谢了,厘米。

【问题讨论】:

  • 启用规范 URL 不能解决此问题?

标签: magento attributes seo layered-navigation


【解决方案1】:

尝试使用规范的 url 元标记,谷歌、雅虎和其他主要搜索引擎将仅索引该元标记指定的 url。 为此我推荐:Yoast extension

【讨论】:

    【解决方案2】:

    您可以将您的 Head.php 文件 (/app/code/core/Mage/Page/Block/Html/Head.php) 复制到本地目录 (/app/code/local/Mage/Page/Block/Html /head.php)

    下面是如何实现对新文件的修改:

    public function getRobots()
        {
            if (empty($this->_data['robots'])) {
                $this->_data['robots'] = Mage::getStoreConfig('design/head/default_robots');
            }
    
            //Added NOINDEX, FOLLOW for category page with filter(s)
            if(Mage::app()->getFrontController()->getAction()->getFullActionName() == 'catalog_category_view'){
                $appliedFilters = Mage::getSingleton('catalog/layer')->getState()->getFilters();
    
                //var_dump($appliedFilters);  //<-- uncomment and see filters as array in page source code in meta robots tag.
    
                if(is_array($appliedFilters) && count($appliedFilters) > 0){
                    $this->_data['robots'] = "NOINDEX, FOLLOW";
                }
            }
    
            return $this->_data['robots'];
        }
    

    附:另请注意,您应该添加一些检查对象是否存在。

    Mage::app()->getFrontController()->getAction()->getFullActionName()
    

    【讨论】:

    • 你还会推荐这个解决方案吗?或者也可以通过观察者来实现?我很欣赏你的想法
    【解决方案3】:

    在视频中,有一些解决方案,例如 nofollow、Robots.txt 等。您也可以看看以下建议。

    1. 您可以在所有动态/过滤页面上使用相应产品页面/类别页面的规范。

    2. 如果您遇到此问题,Google 网站管理员会报告重复的元标记,因为所有页面都已编入索引并且它们包含主页的元标记。然后你可以去动态元标记。

    但是使用主页的规范是最好的选择。希望这些建议对您有所帮助! :)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-04-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多