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

12.5k Views Asked by At

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

2

There are 2 best solutions below

2
On

Depends on your setup... we've got a module that you can select NOINDEX/INDEX,FOLLOW/NOFOLLOW on the admin section of each page.

Have a look at http://yoast.com/articles/magento-seo/ point 3.1.

0
On

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.