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:
Locate the layout (module) for this particular page -> e.g. app/design/frontend/your_package/your_theme/layout/catalogsearch.xml
Locate your page:
<catalogsearch_term_popular translate="label">
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.
精彩评论