Magento Layered Navigation & SEO

I have questions about Magento and seo layered navigation.

Our site seems to be indexed by URLs that are related to attributes, e.g. www.abc.com/exampleproduct?brand=69

This creates tons of duplicate content issues. Has anyone ever come across something like this, and is there any good solution for this. Inchoo wrote a blog about it here: http://inchoo.net/online-marketing/magento-seo-how-to-handle-problems-caused-by-layered-navigation/ , but it really didn't solve it.

Thanks in advance, see

+5
source share
3 answers

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'];
    }

P.S. , .

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

- canonical url, google, yahoo URL-, . : Yoast

0

, nofollow, Robots.txt . .

  • / /.

  • If you encounter a problem, the Google webmaster reports duplicate meta tags because all pages are indexed and contain meta tags on the main page. Then you can use dynamic meta tags.

But using a canonical homepage is the best option. Hope these suggestions help you! :)

0
source

All Articles