Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I edit in Magento <meta name="robots" content="NOINDEX,FOLLOW" /> for individual pages

I am struggling to find in Magento a way to edit the <meta name="robots" content="NOINDEX,FOLLOW"> for individual pages.

Does anybody know how to? Please help.

Thanks

like image 528
Seosmart Avatar asked Feb 25 '23 07:02

Seosmart


1 Answers

You should be able to do so on a per module basis, via layout xml files.

For example, should you need to set robots to NOINDEX, FOLLOW, on the Popular Search Term page:

  1. Locate the layout (module) for this particular page -> e.g. app/design/frontend/your_package/your_theme/layout/catalogsearch.xml

  2. Locate your page: <catalogsearch_term_popular translate="label">

  3. Add the following lines along with other references:

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

You could do the same for any other module (checkout, sendfriendemail etc...) for which you would need to change the default robots value.

like image 181
zebulon Avatar answered Feb 26 '23 20:02

zebulon