开发者

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


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.


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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜