<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Robots=&quot;noindex&quot; on not found pages</title>
		<link>http://www.wikidot.org/forum/t-214770/robots-noindex-on-not-found-pages</link>
		<description>Posts in the discussion thread &quot;Robots=&quot;noindex&quot; on not found pages&quot; - This is a SEO improvement for &quot;the page does not (yet) exist&quot; page</description>
				<copyright></copyright>
		<lastBuildDate>Wed, 08 Sep 2010 09:38:46 +0000</lastBuildDate>
		
					<item>
				<guid>http://www.wikidot.org/forum/t-214770#post-686078</guid>
				<title>Robots=&quot;noindex&quot; on not found pages</title>
				<link>http://www.wikidot.org/forum/t-214770/robots-noindex-on-not-found-pages#post-686078</link>
				<description></description>
				<pubDate>Thu, 28 Jan 2010 12:38:21 +0000</pubDate>
				<wikidot:authorName>Leandro Arndt</wikidot:authorName>				<wikidot:authorUserId>431350</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I've suggested this on Wikidot.com forum (<a href="http://community.wikidot.com/forum/t-214639/seo:canonical-page-and-noindex-on-lacking-pages">http://community.wikidot.com/forum/t-214639/seo:canonical-page-and-noindex-on-lacking-pages</a>):</p> <blockquote> <p>Wikidot already supports some tags needed for SEO (Search Engine Optimization), but it lacks 2 features that are a "must" for SEO.</p> <p><em>(…)</em></p> <h1><span>Robots tag = "noindex"</span></h1> <p>Secondly, Wikidot could use the code bellow on non-existing pages, so that the search engines won't index pages with that default text:</p> <p>&gt; + The page does not (yet) exist.<br /> &gt;<br /> &gt; The page blablabla you want to access does not exist.<br /> &gt;<br /> &gt; * create page</p> <p>This is not only duplicated content, but also hides our real contents behind these "keywords": "page", "exist", "create"… This is specially true on newly created wikis, not fully populated yet.</p> <p>The code needed on these pages is:</p> <p>[[code type="HTML"]]<br /> &lt;head&gt;<br /> …<br /> &lt;meta name="robots" content="noindex" /&gt;<br /> …<br /> &lt;/head&gt;<br /> [[/code]]</p> <p>The same could be done to admin:manage (anyone wants it to appear on Google?).</p> </blockquote> <p>Doing a quick search on Wikidot.org source files, I think I've found a way of implementing it. Maybe the solution for the <em>robots=noindex</em> on not found pages might be like the following (code starts on line 50 of <a href="http://github.com/gabrys/wikidot/blob/master/templates/layouts/WikiLayout.tpl">http://github.com/gabrys/wikidot/blob/master/templates/layouts/WikiLayout.tpl</a>):</p> <div class="code"> <div class="hl-main"> <pre> <span class="hl-inlinetags">&lt;?</span><span class="hl-code"> </span><span class="hl-identifier">php</span><span class="hl-code"> </span><span class="hl-comment">// [...] Line 50:</span><span class="hl-code"> &lt;</span><span class="hl-identifier">meta</span><span class="hl-code"> </span><span class="hl-identifier">http</span><span class="hl-code">-</span><span class="hl-identifier">equiv</span><span class="hl-code">=</span><span class="hl-quotes">"</span><span class="hl-string">content-type</span><span class="hl-quotes">"</span><span class="hl-code"> </span><span class="hl-identifier">content</span><span class="hl-code">=</span><span class="hl-quotes">"</span><span class="hl-string">text/html;charset=UTF-8</span><span class="hl-quotes">"</span><span class="hl-code">/&gt; &lt;</span><span class="hl-identifier">meta</span><span class="hl-code"> </span><span class="hl-identifier">http</span><span class="hl-code">-</span><span class="hl-identifier">equiv</span><span class="hl-code">=</span><span class="hl-quotes">"</span><span class="hl-string">content-language</span><span class="hl-quotes">"</span><span class="hl-code"> </span><span class="hl-identifier">content</span><span class="hl-code">=</span><span class="hl-quotes">"</span><span class="hl-var">{$site-&gt;getLanguage()}</span><span class="hl-quotes">"</span><span class="hl-code">/&gt; </span><span class="hl-comment">// *************** NEW CODE START ***************</span><span class="hl-code"> </span><span class="hl-brackets">{</span><span class="hl-reserved">if</span><span class="hl-code"> </span><span class="hl-var">$pageNotExists</span><span class="hl-brackets">}</span><span class="hl-code"> &lt;</span><span class="hl-identifier">meta</span><span class="hl-code"> </span><span class="hl-identifier">name</span><span class="hl-code">=</span><span class="hl-quotes">"</span><span class="hl-string">robots</span><span class="hl-quotes">"</span><span class="hl-code"> </span><span class="hl-identifier">content</span><span class="hl-code">=</span><span class="hl-quotes">"</span><span class="hl-string">noindex</span><span class="hl-quotes">"</span><span class="hl-code"> /&gt; </span><span class="hl-brackets">{</span><span class="hl-code">/</span><span class="hl-reserved">if</span><span class="hl-brackets">}</span><span class="hl-code"> </span><span class="hl-comment">// **************** NEW CODE END ****************</span><span class="hl-code"> &lt;</span><span class="hl-identifier">script</span><span class="hl-code"> </span><span class="hl-identifier">type</span><span class="hl-code">=</span><span class="hl-quotes">"</span><span class="hl-string">text/javascript</span><span class="hl-quotes">"</span><span class="hl-code"> </span><span class="hl-identifier">src</span><span class="hl-code">=</span><span class="hl-quotes">"</span><span class="hl-string">/common--javascript/WIKIDOT.js</span><span class="hl-quotes">"</span><span class="hl-code">&gt;&lt;/</span><span class="hl-identifier">script</span><span class="hl-code">&gt; </span><span class="hl-comment">// and so on...</span><span class="hl-code"> </span><span class="hl-inlinetags">?&gt;</span> </pre></div> </div> <p>In my opinion it seems to be an easy solution for that problem of duplicated content and unwanted search keywords.</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>