Today many SEO specialists often use Nofollow and Noindex tags in order to distribute the weight of pages and also to hide some unnecessary parts of content or html code. What is the difference between noindex and nofollow?
The first term is a tag which hides a part of text or the whole page from the search engines indexation, the second one is an attribute of <a> tag which helps to regulate the weight of a page by prohibiting to send it to the site being accessed.
Noindex is used to hide some unnecessary information from the search engines, e.g. site visitor counter codes, non-unique content, frequently updated information.
The main role of Nofollow is preservation of the page weight. This attribute is needed if you do not wish to transfer a part of the page weight to an unconfirmed source, in case you link to such popular sites as Google or Subscribe. This tag will also be useful if a page contains too many outgoing links. Besides, you can also use Nofollow to hide the links in comments.
You can configure Nofollow and Noindex in Magento by yourself. Gomage Magento experts recommend two possible ways:
- by placing a file robots.txt in the root directory of your site;
- by using meta name="robots" tag.
In the first case, you need to update the file robots.txt with the names of pages you wish to hide using the following code:
User-agent: * Disallow: /myfile.html
This method is basically used to prohibit indexation of the whole page instead of a specific part of text or unnecessary code.
Correspondingly, if you do not wish to transfer a part of the page weight, you should use nofollow instead of noindex.
The second variant of indexing prohibition may look as follows:
<html> <head> <meta name=”robots” content=”noindex”/> <title>Site page title</title> </head>
The attribute ‘content’ can have the following values:
<meta name="robots" content="index, follow" /> <meta name="robots" content="noindex, follow" /> <meta name="robots" content="index, nofollow" /> <meta name="robots" content="noindex, nofollow" />
You can choose the content to hide in the Magento admin panel: System -> Configuration -> Design -> HTML Head -> Default Robots
In order to set noindex and nofollow on static pages you can use layout update. In CMS – Pages tab choose the necessary page, then locate the field Layout Update XML and paste the following code:
<reference name="head"> <action method="setRobots"><value>noindex, nofollow</value><name>robots</name></action> </reference>
This code can also be used in any template you choose. If you have any problems or questions we recommend you to contact Magento development team. We will be glad to assist you.