Magento – No Index Filter pages

ce-1.7.0.2filterlayered-navigationsearchseo

How do I set noindex for the filter pages?

I have a little dupilicate content issue and no have an ajax navigation but I want to set noindex follow fpr the pages to get them out of google,

Any ideas how to add the meta tag to these pages ?

example URL www.example.com/furniture/wardrobes.html?cat=34&price=asc

I have used google Parameters to crawl NO URLs with the parameters and enabled Rel= Can to orginal pages

Thanks.

Best Answer

Answer for this can be found here: http://doejo.com/blog/magento-how-to-add-noindex-nofollow-robots-meta-tag-or-change-meta-title-or-description-on-certain-pages/

You need the correct layout handle, for layered navigation use this code (be careful, this adds NOINDEX to unfiltered pages too!):

<catalog_category_layered>
   <reference name="head">
      <action method="setRobots"><value>NOINDEX,FOLLOW</value></action>
   </reference>
</catalog_category_layered>
Related Topic