<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WordPress Hacks &#187; Noindex</title>
	<atom:link href="http://wordpress-hacks.com/tag/noindex/feed" rel="self" type="application/rss+xml" />
	<link>http://wordpress-hacks.com</link>
	<description>Tips y consejos de WordPress en español</description>
	<lastBuildDate>Fri, 30 Mar 2012 10:59:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>robots.txt para WordPress</title>
		<link>http://wordpress-hacks.com/robots-txt-para-wordpress.php</link>
		<comments>http://wordpress-hacks.com/robots-txt-para-wordpress.php#comments</comments>
		<pubDate>Fri, 23 Jul 2010 11:36:18 +0000</pubDate>
		<dc:creator>Neri Aispuro</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Noarchive]]></category>
		<category><![CDATA[Noindex]]></category>

		<guid isPermaLink="false">http://wordpress-hacks.com/?p=615</guid>
		<description><![CDATA[En innumerables ocasiones he leído en foros consultas, dudas y problemas relacionados al robots.txt, también un par de veces me han preguntado y la respuesta es la misma que suelo dar la mayoría de las veces que me preguntan algo sobre un sitio: DEPENDE. Para entender que robots.txt es el que más se ajusta a nuestras necesidades, primero hay que entender en que consiste, una breve explicación: El protocolo de robots.txt es un método para evitar que ciertos bots que analizan los sitios Web agreguen información innecesaria a los resultados de búsqueda.(Wikipedia) Básicamente un robots.txt consiste en indicar el robot [...]]]></description>
			<content:encoded><![CDATA[<p>En innumerables ocasiones he leído en foros consultas, dudas y problemas relacionados al <strong>robots.txt</strong>, también un par de veces me han preguntado y la respuesta es la misma que suelo dar la mayoría de las veces que me preguntan algo sobre un sitio: DEPENDE.</p>
<div align="center"><img src="http://wordpress-hacks.com/wp-content/uploads/2010/07/robot.txt.jpg" alt="" title="robot.txt" width="151" height="97" class="alignnone size-full wp-image-619" /></div>
<p>Para entender que robots.txt es el que más se ajusta a nuestras necesidades, primero hay que entender en que consiste, una breve explicación:</p>
<blockquote><p>El protocolo de robots.txt es un método para evitar que ciertos bots que analizan los sitios Web agreguen información innecesaria a los resultados de búsqueda.(<a rel="nofollow" href="http://es.wikipedia.org/wiki/Est%C3%A1ndar_de_exclusi%C3%B3n_de_robots">Wikipedia</a>)</p></blockquote>
<p>Básicamente un robots.txt consiste en indicar el robot y lo que queremos que haga, el robot se indica como &#8220;User-agent: nombre del bot&#8221; y las órdenes &#8220;Allow :&#8221;, &#8220;Disallow :&#8221;</p>
<p>Por ejemplo si queremos que ningún robot pueda acceder al directorio &#8220;privado&#8221; vamos a poner lo siguiente:<br />
<code><br />
User-agent: *<br />
Disallow : /privado/<br />
</code><br />
El caracter &#8220;*&#8221; es usado como comodín para indicar todos los robots, por ejemplo si quisiéramos que solo el robot de Yahoo no ingrese a la carpeta &#8220;privado&#8221; vamos a poner lo siguiente:<br />
<code><br />
User-agent: Slurp<br />
Disallow : /privado/<br />
</code><br />
Hace bastante tiempo, WordPress (o sus desarrolladores) eran medios torpe y no incluían las meta tags noindex y nofollow en el área de administración y había que decirle al bot que no indexe el login por ejemplo, hoy ya eso no es un problema.</p>
<p>Como dije al principio, el robots.txt depende de que necesitemos y de las preferencias nuestras, por ejemplo a mi no me gusta que se indexe el archivo (2009/03), ni tampoco lo de autor (/author/*), ni las páginas (/page/*).</p>
<p>En el robots.txt también podemos incluir la dirección de nuestro sitemap del modo &#8220;Sitemap: http://dominio.com/sitemap.xml&#8221;</p>
<p>La orden &#8220;Allow&#8221; no suele ser muy utilizada, en mi caso la uso si creo algún directorio y quiero que google lo indexe más rápido, o para las categorías, tags e imagenes, aunque a veces no es necesario.</p>
<p>Muchos siguen teniendo en cuenta <a href="http://sigt.net/archivo/robotstxt-para-wordpress.xhtml">robots.txt de hace 3 años</a> llenos de código innecesario, mi recomendación es que hagan un robot que sea lo más corto posible, como por ejemplo:<br />
<code><br />
User-agent: *<br />
Disallow:<br />
Sitemap: http://dominio.com/sitemap.xml<br />
</code><br />
Tengan en cuenta que los bots son case sensitive, esto quiere decir que no es lo mismo decirles que un directorio se llama &#8220;Privado&#8221; o &#8220;privado&#8221;.</p>
<p>Pueden encontrar información más detallada sobre los robots.txt en la <a href="http://www.robotstxt.org/">web de los robots</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://wordpress-hacks.com/robots-txt-para-wordpress.php/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>NoFollow, NoIndex, NoArchive y mas desde el Header</title>
		<link>http://wordpress-hacks.com/nofollow-noindex-noarchive-y-mas-desde-el-header.php</link>
		<comments>http://wordpress-hacks.com/nofollow-noindex-noarchive-y-mas-desde-el-header.php#comments</comments>
		<pubDate>Mon, 26 Jan 2009 13:45:55 +0000</pubDate>
		<dc:creator>Neri Aispuro</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Meta Tags]]></category>
		<category><![CDATA[Noarchive]]></category>
		<category><![CDATA[Nofollow]]></category>
		<category><![CDATA[Noindex]]></category>

		<guid isPermaLink="false">http://wordpress-hacks.com/?p=136</guid>
		<description><![CDATA[Muchos de ustedes conoceran las instrucciones para que los motores de busqueda Google no indexe, ni archive, y no siga los enlaces; Nofollow, Noindex y Noarchive. El atributo Nofollow es el que va cuando no queremos darle importancia a un enlace, ejemplo es de los feeds &#60;a rel="nofollow" href="http://wordpress-hacks.com/feed"&#62;Feed con NoFollow&#60;/a&#62;. Mientras que el Noindex es un meta tag, que dice que no se indexe la pagina en cuestion, un ejemplo, son las paginas de contacto, o sitemaps, etc. Ejemplo:  Politicas de Privacidad &#60;meta name="robots" content="noindex" /&#62; [/php] El Meta tag Noarchive, dice a google que no queremos que se [...]]]></description>
			<content:encoded><![CDATA[<p>Muchos de ustedes conoceran las instrucciones para que <del datetime="2009-01-26T14:08:13+00:00">los motores de busqueda</del> Google no indexe, ni archive, y no siga los enlaces; Nofollow, Noindex y Noarchive.</p>
<p><center><a href="http://flickr.com/photos/matsiltala"><img src="http://wordpress-hacks.com/wp-content/uploads/2009/01/meta-tags.jpg" alt="meta tags" title="meta tags" width="200" height="261" /></a></center></p>
<p>El atributo <strong>Nofollow</strong> es el que va cuando no queremos darle importancia a un enlace, ejemplo es de los feeds &lt;a rel="nofollow" href="http://wordpress-hacks.com/feed"&gt;Feed con NoFollow&lt;/a&gt;.</p>
<p>Mientras que el <strong>Noindex</strong> es un meta tag, que dice que no se indexe la pagina en cuestion, un ejemplo, son las paginas de contacto, o sitemaps, etc.</p>
<p>Ejemplo:  <a rel="nofollow" href="http://wordpress-hacks.com/politica-de-privacidad">Politicas de Privacidad</a></p>
<pre id="line76">&lt;<span class="start-tag">meta</span><span class="attribute-name"> name</span>=<span class="attribute-value">"robots" </span><span class="attribute-name">content</span>=<span class="attribute-value">"noindex" </span><span class="error"><span class="attribute-name">/&gt;<br />
</span></span>[/php]<br />
El Meta tag <strong>Noarchive</strong>, dice a google que no queremos que se guarde una copia de la pagina en la cache del buscador.<br />
Se usa, al igual que como se usa el Noindex;</p>
<pre id="line76">&lt;<span class="start-tag">meta</span><span class="attribute-name"> name</span>=<span class="attribute-value">"robots" </span><span class="attribute-name">content</span>=<span class="attribute-value">"noarchive" </span><span class="error"><span class="attribute-name">/&gt;<br />
</span></span>[/php]</p>
<p>Los que usamos WordPress, para no andar agregando los meta tags a las paginas y/o articulos que desarrollamos, podemos configurar desde el header para que no se indexe lo que no queremos.</p>
<p>Por ejemplo, si no queremos que se indexen las busquedas, podemos poner:</p>
<div class="igBar"><span id="lphp-7"><a href="#" onclick="javascript:showPlainTxt('php-7'); return false;">Ver texto plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-7">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span>is_search<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &lt;meta name=<span style="color:#FF0000;">"robots"</span> content=<span style="color:#FF0000;">"noindex,noarchive,nofollow"</span> /&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>O los errores 404, el archivo de autor, los meses, o mas.<br />
Algunos ejemplos adicionales:</p>
<p>Error 404:</p>
<div class="igBar"><span id="lphp-8"><a href="#" onclick="javascript:showPlainTxt('php-8'); return false;">Ver texto plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-8">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span>is_404<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &lt;meta name=<span style="color:#FF0000;">"robots"</span> content=<span style="color:#FF0000;">"noindex,noarchive,nofollow"</span> /&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Archivo de autor:</p>
<div class="igBar"><span id="lphp-9"><a href="#" onclick="javascript:showPlainTxt('php-9'); return false;">Ver texto plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-9">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span>is_author<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &lt;meta name=<span style="color:#FF0000;">"robots"</span> content=<span style="color:#FF0000;">"noindex,noarchive,nofollow"</span> /&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Fechas:</p>
<div class="igBar"><span id="lphp-10"><a href="#" onclick="javascript:showPlainTxt('php-10'); return false;">Ver texto plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-10">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span>is_month<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &lt;meta name=<span style="color:#FF0000;">"robots"</span> content=<span style="color:#FF0000;">"noindex,noarchive,nofollow"</span> /&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Tags:</p>
<div class="igBar"><span id="lphp-11"><a href="#" onclick="javascript:showPlainTxt('php-11'); return false;">Ver texto plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-11">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span>is_tag<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &lt;meta name=<span style="color:#FF0000;">"robots"</span> content=<span style="color:#FF0000;">"noindex,noarchive,nofollow"</span> /&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Todos Juntos:</p>
<div class="igBar"><span id="lphp-12"><a href="#" onclick="javascript:showPlainTxt('php-12'); return false;">Ver texto plano</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-12">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span>is_search<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> || is_404<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> || is_tag<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> || is_month<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> || is_author<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#000000; font-weight:bold;">?&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &lt;meta name=<span style="color:#FF0000;">"robots"</span> content=<span style="color:#FF0000;">"noindex,noarchive,nofollow"</span> /&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span> <span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>No lo he visto en ningun lado este tip, lo encontre un dia modificando un theme <img src='http://wordpress-hacks.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://wordpress-hacks.com/nofollow-noindex-noarchive-y-mas-desde-el-header.php/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

