cancel
Showing results for 
Search instead for 
Did you mean: 

How do I set noindex for the filter pages

How do I set noindex for the filter pages

Hi. I'm new to magento and i need to add no index tag to  filters url . ex : https://example.com/blugi-dama?colour=13https://example.combudget-sarees?price=450-1000,1000-1300/

need to add nofolow tag if filters are selected.  any idea or module? thanks 

1 REPLY 1

Re: How do I set noindex for the filter pages

Hello @vara0244gmd0d3 

 

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>
Problem solved? Click Accept as Solution!