<?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>Tech Titbits &#187; SEO</title>
	<atom:link href="http://techtitbits.com/category/seo/feed/" rel="self" type="application/rss+xml" />
	<link>http://techtitbits.com</link>
	<description>Titbits of technology, with extra sauce</description>
	<lastBuildDate>Sun, 22 Aug 2010 07:02:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Add canonical links to phpBB</title>
		<link>http://techtitbits.com/2009/11/add-canonical-links-to-phpbb/</link>
		<comments>http://techtitbits.com/2009/11/add-canonical-links-to-phpbb/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 11:21:12 +0000</pubDate>
		<dc:creator>Ellimist</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[phpBB]]></category>
		<category><![CDATA[phpBB mods]]></category>
		<category><![CDATA[canonical URL]]></category>
		<category><![CDATA[phpBB3]]></category>

		<guid isPermaLink="false">http://techtitbits.com/?p=261</guid>
		<description><![CDATA[It&#8217;s old news that Google and other major search engines have added support for the &#60;link rel="canonical"&#62; tag to help cut down on duplicate indexing of web pages. While plugins for WordPress, Drupal and Magneto E-Commerce have been released, there has been none such modification for phpBB, where it is, arguably, most needed. phpBB administrators [...]


Related posts:<ol><li><a href='http://techtitbits.com/2008/10/phpbb-redirect-broken-links-after-uninstalling-an-seo-mod/' rel='bookmark' title='Permanent Link: phpBB: Redirect broken links after uninstalling an SEO mod'>phpBB: Redirect broken links after uninstalling an SEO mod</a></li>
<li><a href='http://techtitbits.com/2009/04/prevent-duplicate-indexing-while-moving-threads-in-phpbb/' rel='bookmark' title='Permanent Link: Prevent duplicate indexing while moving threads in phpBB'>Prevent duplicate indexing while moving threads in phpBB</a></li>
<li><a href='http://techtitbits.com/2008/07/prevent-duplicate-indexing-of-phpbb3-threads-by-google/' rel='bookmark' title='Permanent Link: Prevent duplicate indexing of phpBB3 threads by Google'>Prevent duplicate indexing of phpBB3 threads by Google</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-268" title="phpbb-logo-green" src="http://techtitbits.com/wp-content/uploads/2009/11/phpbb-logo-green.jpg" alt="phpbb-logo-green" width="191" height="103" />It&#8217;s <a title="Official Google Webmaster Center Blog: Specify your canonical" href="http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html" target="_blank">old news</a> that Google and other major search engines have added support for the <code>&lt;link rel="canonical"&gt;</code> tag to help cut down on duplicate indexing of web pages. While <a title="Canonical URL links" href="http://yoast.com/canonical-url-links/" target="_blank">plugins for WordPress, Drupal and Magneto E-Commerce</a> have been released, there has been none such modification for phpBB, where it is, arguably, most needed.</p>
<p>phpBB administrators have used <a title="Prevent duplicate indexing of phpBB3 threads by Google" href="http://techtitbits.com/2008/07/prevent-duplicate-indexing-of-phpbb3-threads-by-google/" target="_blank">various</a> <a title="Handyman's SEO Mod" href="http://www.phpbb.com/community/viewtopic.php?f=69&amp;t=691165" target="_blank">methods</a> to cut down on this duplicate indexing issue, but adding a canonical URL seems to be the most subtly effective way. Google honours this tag very strongly, and upon finding it in a web page, it should only index the canonical page.</p>
<p>In the view of all this, I have put together a mod for phpBB3 to add the canonical links to phpBB board pages. The Canonical URL mod adds these lines to the phpBB pages :</p>
<p>In the index page :</p>
<pre class="brush: xml;">&lt;link rel=&quot;canonical&quot; href=&quot;http://www.example.com/&quot; /&gt;</pre>
<p>In the forum pages :</p>
<pre class="brush: xml;">&lt;link rel=&quot;canonical&quot; href=&quot;http://www.example.com/viewforum.php?f=1&quot; /&gt;</pre>
<p>In the topic pages :</p>
<pre class="brush: xml;">&lt;link rel=&quot;canonical&quot; href=&quot;http://www.example.com/viewforum.php?f=1&amp;t=1&quot; /&gt;</pre>
<p>For global threads<a href="#note">*</a> :</p>
<pre class="brush: xml;">&lt;link rel=&quot;canonical&quot; href=&quot;http://www.example.com/viewforum.php?t=1&quot; /&gt;</pre>
<p><strong>phpBB.com support thread :</strong></p>
<p><a href="http://www.phpbb.com/customise/db/mod/canonical_url/support/mod_discussion_canonical_url-t_875" target="_blank">http://www.phpbb.com/customise/db/mod/canonical_url/support/mod_discussion_canonical_url-t_875</a></p>
<p><a id="download"></a><strong>Download modification :</strong></p>
<p><a href="http://techtitbits.com/mods/canonical_url/download/"><img class="size-full wp-image-281 alignnone" title="download" src="http://techtitbits.com/wp-content/uploads/2009/11/download.jpg" alt="download" width="200" height="50" /></a></p>
<p><a id="note"></a><strong>Note :</strong></p>
<p>Normally, global threads will have canonical URLs like this :</p>
<pre class="brush: xml;">&lt;link rel=&quot;canonical&quot; href=&quot;http://www.example.com/viewforum.php?t=1&quot; /&gt;</pre>
<p>If you want the global threads to have canonical URLs with an &#8220;f=Y&#8221; query string, you just need to make a little change to the code. After installing the mod, open viewtopic.php.<br />
Find :</p>
<pre class="brush: php;">   'U_CANONICAL'    =&gt; generate_board_url() . &quot;/viewtopic.$phpEx?&quot; . (($topic_data['topic_type'] == POST_GLOBAL) ? '' : &quot;f=$forum_id&amp;amp;&quot;) . &quot;t=$topic_id&quot; . (($start) ? &quot;&amp;amp;start=$start&quot; : ''),</pre>
<p>In-line Find :</p>
<pre class="brush: plain;">? ''</pre>
<p>Replace with :</p>
<pre class="brush: php;">? &quot;f=Y&amp;amp;&quot;</pre>
<p>Replace &#8216;Y&#8217; with the forum id of the forum you want your global threads to belong to.</p>


<p>Related posts:<ol><li><a href='http://techtitbits.com/2008/10/phpbb-redirect-broken-links-after-uninstalling-an-seo-mod/' rel='bookmark' title='Permanent Link: phpBB: Redirect broken links after uninstalling an SEO mod'>phpBB: Redirect broken links after uninstalling an SEO mod</a></li>
<li><a href='http://techtitbits.com/2009/04/prevent-duplicate-indexing-while-moving-threads-in-phpbb/' rel='bookmark' title='Permanent Link: Prevent duplicate indexing while moving threads in phpBB'>Prevent duplicate indexing while moving threads in phpBB</a></li>
<li><a href='http://techtitbits.com/2008/07/prevent-duplicate-indexing-of-phpbb3-threads-by-google/' rel='bookmark' title='Permanent Link: Prevent duplicate indexing of phpBB3 threads by Google'>Prevent duplicate indexing of phpBB3 threads by Google</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techtitbits.com/2009/11/add-canonical-links-to-phpbb/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Prevent duplicate indexing while moving threads in phpBB</title>
		<link>http://techtitbits.com/2009/04/prevent-duplicate-indexing-while-moving-threads-in-phpbb/</link>
		<comments>http://techtitbits.com/2009/04/prevent-duplicate-indexing-while-moving-threads-in-phpbb/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 16:48:32 +0000</pubDate>
		<dc:creator>Ellimist</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[phpBB]]></category>
		<category><![CDATA[duplicate indexing]]></category>
		<category><![CDATA[moving topic]]></category>
		<category><![CDATA[phpBB3]]></category>

		<guid isPermaLink="false">http://techtitbits.com/2009/04/prevent-duplicate-indexing-while-moving-threads-in-phpbb/</guid>
		<description><![CDATA[Moving a thread from one forum to another cause duplicate indexing issues in phpBB3. In such cases, both the old URL and the new URL return a &#8220;200 Found&#8221; header response, even though the thread doesn&#8217;t exist in the old forum. Ideally, the old URL should 301 redirect to the new URL. In this post [...]


Related posts:<ol><li><a href='http://techtitbits.com/2008/07/prevent-duplicate-indexing-of-phpbb3-threads-by-google/' rel='bookmark' title='Permanent Link: Prevent duplicate indexing of phpBB3 threads by Google'>Prevent duplicate indexing of phpBB3 threads by Google</a></li>
<li><a href='http://techtitbits.com/2008/10/phpbb-redirect-broken-links-after-uninstalling-an-seo-mod/' rel='bookmark' title='Permanent Link: phpBB: Redirect broken links after uninstalling an SEO mod'>phpBB: Redirect broken links after uninstalling an SEO mod</a></li>
<li><a href='http://techtitbits.com/2009/11/add-canonical-links-to-phpbb/' rel='bookmark' title='Permanent Link: Add canonical links to phpBB'>Add canonical links to phpBB</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div id="attachment_192" class="wp-caption aligncenter" style="width: 400px"><img class="size-full wp-image-192" title="Moving phpBB topic/thread" src="http://techtitbits.com/wp-content/uploads/2009/04/moving_phpbb_topic.jpg" alt="Moving phpBB topic/thread" width="390" height="125" /><p class="wp-caption-text">Moving phpBB topic/thread</p></div>
<p>Moving a thread from one forum to another cause duplicate indexing issues in phpBB3. In such cases, both the old URL and the new URL return a &#8220;200 Found&#8221; header response, even though the thread doesn&#8217;t exist in the old forum. Ideally, the old URL should 301 redirect to the new URL. In this post we&#8217;ll learn how to do this.</p>
<p>phpBB uses query strings like <code>f=X&amp;t=Y</code> to determine which thread to serve, where &#8216;X&#8217; is the forum id and &#8216;Y&#8217; is the thread id. In a &#8220;view topic&#8221; URL, the <code>f=X</code> part of the query string serves no purpose except to note which forum the user is browsing and accordingly reflect it in the &#8220;Who is online&#8221; page. In fact, threads can be accessed using any &#8216;f=X&#8217; value, even using non-existant forum ids. This isn&#8217;t much of a problem in normal situation, as the threads are linked using their corresponding forum ids, but the duplicate indexing problem arises when a thread(s) is moved from on forum to another.</p>
<p>Since we need to change query strings here, neither <code>Redirect</code> nor <code>RedirectMatch</code> will work as they don&#8217;t take query strings into account. We need to use <code>RedirectCond</code> using <code>QUERY_STRING</code> and a RewriteRule directive to externally rewrite the URL. We will will also send a &#8220;301 Permanently Moved&#8221; response header so that the spiders know the page has been moved. Let us suppose that a thread with thread id 5 is being moved from forum with forum id 1 to forum with id 2. Therefore, the old URL :</p>
<pre class="brush: plain;">http://domain.com/viewtopic.php?f=1&amp;t=5</pre>
<p>And the new URL :</p>
<pre class="brush: plain;">http://domain.com/viewtopic.php?f=2&amp;t=5</pre>
<p>We need to redirect the first URL to the second. Add these codes to your .htaccess file :</p>
<pre class="brush: plain;">RewriteEngine On # Skip this if you have already turned on the rewriting engine
RewriteCond %{QUERY_STRING} ^f=1\&amp;t=5$
RewriteRule ^viewtopic\.php$ /viewtopic.php?f=2&amp;t=5 [R=301,L]

RewriteCond %{QUERY_STRING} ^f=1\&amp;t=5\&amp;start=([0-9]*)$
RewriteRule ^viewtopic\.php$ /viewtopic.php?f=2&amp;t=5&amp;start=%1 [R=301,L]</pre>
<p>Skip the first line if you have already turned on the rewriting engine in your .htaccess file. The second RewriteRule redirects the other pages of the thread (with URL like <code>viewtopic.php?f=X&amp;t=Y&amp;start=10</code>). For each thread moved, we need to add these directives in the .htaccess file, changing the forum ids and topic id&#8217;s as necessary.</p>
<p>This method seems tedious and cumbersome, but this is the only method I could devise as of now. If anyone has a better method, you are welcome to leave a comment.</p>


<p>Related posts:<ol><li><a href='http://techtitbits.com/2008/07/prevent-duplicate-indexing-of-phpbb3-threads-by-google/' rel='bookmark' title='Permanent Link: Prevent duplicate indexing of phpBB3 threads by Google'>Prevent duplicate indexing of phpBB3 threads by Google</a></li>
<li><a href='http://techtitbits.com/2008/10/phpbb-redirect-broken-links-after-uninstalling-an-seo-mod/' rel='bookmark' title='Permanent Link: phpBB: Redirect broken links after uninstalling an SEO mod'>phpBB: Redirect broken links after uninstalling an SEO mod</a></li>
<li><a href='http://techtitbits.com/2009/11/add-canonical-links-to-phpbb/' rel='bookmark' title='Permanent Link: Add canonical links to phpBB'>Add canonical links to phpBB</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techtitbits.com/2009/04/prevent-duplicate-indexing-while-moving-threads-in-phpbb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add keywords and description to phpBB&#8217;s index page without installing a mod</title>
		<link>http://techtitbits.com/2009/04/add-keywords-and-description-to-phpbbs-index-page-without-installing-a-mod/</link>
		<comments>http://techtitbits.com/2009/04/add-keywords-and-description-to-phpbbs-index-page-without-installing-a-mod/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 09:15:41 +0000</pubDate>
		<dc:creator>Ellimist</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[phpBB]]></category>
		<category><![CDATA[description]]></category>
		<category><![CDATA[keyword]]></category>
		<category><![CDATA[meta]]></category>

		<guid isPermaLink="false">http://techtitbits.com/?p=145</guid>
		<description><![CDATA[In these days of intelligent search engines, meta keywords and descriptions do not play a major role in SEO. Crawlers are more interested in the contents of the page rather than it&#8217;s keywords and descriptions. However, some people might still want to add keywords and descriptions to their pages, seeing that search engines like Yahoo [...]


Related posts:<ol><li><a href='http://techtitbits.com/2009/11/add-canonical-links-to-phpbb/' rel='bookmark' title='Permanent Link: Add canonical links to phpBB'>Add canonical links to phpBB</a></li>
<li><a href='http://techtitbits.com/2009/02/error-phpbb-debug-php-notice-in-file-includes-functions-php/' rel='bookmark' title='Permanent Link: Error: [phpBB Debug] PHP Notice: in file /includes/functions.php on line 3526: Undefined index: HIDDEN_USERS_ZERO_TOTAL_AND'>Error: [phpBB Debug] PHP Notice: in file /includes/functions.php on line 3526: Undefined index: HIDDEN_USERS_ZERO_TOTAL_AND</a></li>
<li><a href='http://techtitbits.com/2010/02/turn-on-topic-reply-notification-by-default-in-phpbb/' rel='bookmark' title='Permanent Link: Turn on Topic Reply Notification by default in phpBB'>Turn on Topic Reply Notification by default in phpBB</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>In these days of intelligent search engines, meta keywords and descriptions do not play a major role in SEO. Crawlers are more interested in the contents of the page rather than it&#8217;s keywords and descriptions. However, some people might still want to add keywords and descriptions to their pages, seeing that search engines like Yahoo still put some weightage on them.</p>
<p>A vanilla phpBB installation does contain keyword and description meta element, but they do not have any content. Here&#8217;s an easy to add meta keywords and description to phpBB&#8217;s index page without installing and/or maintaining any kind of a mod.</p>
<ul>
<li>Go to <code>/styles/prosilver/template/</code> and open the <code>overall_header.html</code> file with your favourite text editor. Click Edit &gt; Select all, or just press &#8216;Ctrl +A&#8217;. After that, copy the selected code by clicking Edit &gt; Copy or by pressing &#8216;Ctrl + V&#8217;.</li>
<li>Create a new HTML file in the same directory and name it <code>index_header.html</code>.</li>
<li>Open the newly created file and paste the contents of the clipboard in it.</li>
<li>In <code>index_header.html</code>, find :
<pre class="brush: xml;">&lt;meta name=&quot;keywords&quot; content=&quot;&quot; /&gt;</pre>
<p>Replace with :</p>
<pre class="brush: xml;">&lt;meta name=&quot;keywords&quot; content=&quot;keyword1, keyword2, keyword3&quot; /&gt;</pre>
<p>Find :</p>
<pre class="brush: xml;">&lt;meta name=&quot;description&quot; content=&quot;&quot; /&gt;</pre>
<p>Replace with :</p>
<pre class="brush: xml;">&lt;meta name=&quot;description&quot; content=&quot;Here goes the description&quot; /&gt;</pre>
</li>
<li>Open <code>/styles/prosilver/template/index_body.html</code>.</li>
<li>Find :
<pre class="brush: xml;">&lt;!-- INCLUDE overall_header.html --&gt;</pre>
</li>
<li>Replace with :</li>
<pre class="brush: xml;">&lt;!-- INCLUDE index_header.html --&gt;</pre>
</ul>
<p>From now on remember to update index_header.html when you make changes to overall_header.html, or else, the changes won&#8217;t show up in the index page.</p>


<p>Related posts:<ol><li><a href='http://techtitbits.com/2009/11/add-canonical-links-to-phpbb/' rel='bookmark' title='Permanent Link: Add canonical links to phpBB'>Add canonical links to phpBB</a></li>
<li><a href='http://techtitbits.com/2009/02/error-phpbb-debug-php-notice-in-file-includes-functions-php/' rel='bookmark' title='Permanent Link: Error: [phpBB Debug] PHP Notice: in file /includes/functions.php on line 3526: Undefined index: HIDDEN_USERS_ZERO_TOTAL_AND'>Error: [phpBB Debug] PHP Notice: in file /includes/functions.php on line 3526: Undefined index: HIDDEN_USERS_ZERO_TOTAL_AND</a></li>
<li><a href='http://techtitbits.com/2010/02/turn-on-topic-reply-notification-by-default-in-phpbb/' rel='bookmark' title='Permanent Link: Turn on Topic Reply Notification by default in phpBB'>Turn on Topic Reply Notification by default in phpBB</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techtitbits.com/2009/04/add-keywords-and-description-to-phpbbs-index-page-without-installing-a-mod/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WWW or no-WWW?</title>
		<link>http://techtitbits.com/2009/01/www-or-no-www/</link>
		<comments>http://techtitbits.com/2009/01/www-or-no-www/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 19:18:18 +0000</pubDate>
		<dc:creator>Ellimist</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[no-www]]></category>
		<category><![CDATA[non-www]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://techtitbits.com/?p=99</guid>
		<description><![CDATA[Webmasters often face this dilemma &#8211; to include www in front of their domain or to exclude it. This is an oft-argued about topic in many webmasters&#8217; discussion forums. However, there are some advantages and disadvantages on both sides. Advantages : Not using WWW : WWW is actually a subdomain. Would you like users to [...]


Related posts:<ol><li><a href='http://techtitbits.com/2008/07/a-guide-to-dns/' rel='bookmark' title='Permanent Link: A guide to DNS'>A guide to DNS</a></li>
<li><a href='http://techtitbits.com/2008/07/how-to-set-up-a-sub-subdomain/' rel='bookmark' title='Permanent Link: How to set up a sub subdomain'>How to set up a sub subdomain</a></li>
<li><a href='http://techtitbits.com/2008/08/how-to-change-hosts-without-any-downtime-step-by-step/' rel='bookmark' title='Permanent Link: How to change hosts without any downtime, step by step'>How to change hosts without any downtime, step by step</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Webmasters often face this dilemma &#8211; to include www in front of their domain or to exclude it. This is an oft-argued about topic in many webmasters&#8217; discussion forums. However, there are some advantages and disadvantages on both sides.</p>
<p><span style="text-decoration: underline;">Advantages :</span><br />
<strong>Not using WWW :</strong></p>
<ul>
<li>WWW is actually a subdomain. Would you like users to access your site using a subdomain?</li>
<li>WWW, as pointed out by <a title="No-WWW" href="http://no-www.org/" target="_blank">No-WWW.org</a>, is deprecated. There is no purpose of typing www into the address bar except following a premeditated custom.</li>
<li>Users have to type less into the address bat to access your website.</li>
<li>Long domain names look better without the www.</li>
<li>According to some, not using www has a geekyness or coolness factor associated with it.</li>
</ul>
<p><strong>Using WWW :</strong></p>
<ul>
<li>People tend to trust sites which use WWW. Many take a WWW at the front of the domain name to be a sign of reliability and trust.</li>
<li>Most of the biggest players in the web industry use a WWW before their domain names.</li>
</ul>
<p><span style="text-decoration: underline;">Disadvantages :</span></p>
<p><strong>Not using WWW :</strong></p>
<ul>
<li>People tend to think that sites not using www are unreliable and unscrupulous.</li>
<li>Not using WWW presents some difficulties while load balancing. The most common load balancing setup involves duplicating the files and the databases across different servers and pointing the WWW subdomain to those servers using CNAME records. But according to DNS specifications, bare domain names cannot have CNAME records. So, what is commonly done is, the domain is pointed to the different servers using A records instead of CNAME records. This essentially results in load sharing, not load balancing. In this configuration, the user won&#8217;t automatically load the page from the least loaded server, instead the requested page will be randomly served by any of the server.</li>
</ul>
<p><strong>Using WWW :</strong></p>
<ul>
<li>There is actually no feasible disadvantage of using WWW. However, we can say that while requesting a page, using www, we actually have to type out 3 extra Ws, and those three extra Ws are sent to the DNS servers for resolving. However, in this age of gigabit communication, such things hardly matter.</li>
</ul>
<p>Now you&#8217;ll have to choose what you should implement for you website: WWW or no-WWW. Here are the .htaccess codes for redirecting users from www to non-www URLs and vice versa :</p>
<p><strong>Redirection Codes :</strong></p>
<p><span style="text-decoration: underline;">WWW to Non-WWW :</span></p>
<ul>
<pre class="brush: plain;">Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]</pre>
</ul>
<p><span style="text-decoration: underline;">Non-WWW to WWW :</span></p>
<ul>
<pre class="brush: plain;">Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain.com [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]</pre>
</ul>
<p>However, there is a common misconceptions about WWW/Non-WWW :</p>
<p>Q. <em>Having both WWW and Non-WWW URLs valid is bad for SEO and will result in penalization.</em></p>
<p>A. This isn&#8217;t sufficient evidence to support this statement. Search engines like Google and Yahoo! have algorithms that are intelligent enough to know that www and non-www versions of a website are same. However, in some rare cases, it has been found that www and non-www versions of a page have different <a href="http://ebizvaluations.com/page-rank/" target="_blank">pageranks</a>. So, it&#8217;s best to specify your preference (www/ non-www) using <a title="Google Webmaster Tools" href="https://www.google.com/webmasters/tools/dashboard" target="_blank">Google Webmaster Tools</a> and direct all traffic to either www or non-www versions of your site.</p>


<p>Related posts:<ol><li><a href='http://techtitbits.com/2008/07/a-guide-to-dns/' rel='bookmark' title='Permanent Link: A guide to DNS'>A guide to DNS</a></li>
<li><a href='http://techtitbits.com/2008/07/how-to-set-up-a-sub-subdomain/' rel='bookmark' title='Permanent Link: How to set up a sub subdomain'>How to set up a sub subdomain</a></li>
<li><a href='http://techtitbits.com/2008/08/how-to-change-hosts-without-any-downtime-step-by-step/' rel='bookmark' title='Permanent Link: How to change hosts without any downtime, step by step'>How to change hosts without any downtime, step by step</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techtitbits.com/2009/01/www-or-no-www/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prevent duplicate indexing of phpBB3 threads by Google</title>
		<link>http://techtitbits.com/2008/07/prevent-duplicate-indexing-of-phpbb3-threads-by-google/</link>
		<comments>http://techtitbits.com/2008/07/prevent-duplicate-indexing-of-phpbb3-threads-by-google/#comments</comments>
		<pubDate>Sun, 06 Jul 2008 08:12:59 +0000</pubDate>
		<dc:creator>Ellimist</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[phpBB]]></category>
		<category><![CDATA[duplicate indexing]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[robots.txt]]></category>

		<guid isPermaLink="false">http://techtitbits.com/?p=4</guid>
		<description><![CDATA[In a default phpBB3 installation(without an SEO mod), the same thread can be accessed through many URLs. For example, the thread Favourite Animorphs fanfiction can be accessed through these different URLs : http://animorphsfanforum.com/viewtopic.php?f=5&#38;t=60 http://animorphsfanforum.com/viewtopic.php?f=5&#38;p=659 http://animorphsfanforum.com/viewtopic.php?f=5&#38;t=60&#38;p=659 http://animorphsfanforum.com/viewtopic.php?f=5&#38;t=60&#38;p=659#p659 http://animorphsfanforum.com/viewtopic.php?t=60 http://animorphsfanforum.com/viewtopic.php?p=659 http://animorphsfanforum.com/viewtopic.php?f=5&#38;t=60&#38;st=0&#38;sk=t&#38;sd=a http://animorphsfanforum.com/viewtopic.php?f=5&#38;t=60&#38;st=0&#38;sk=t&#38;sd=a#p659 The agressive Googlebot might pick almost all of those links and it might lead to [...]


Related posts:<ol><li><a href='http://techtitbits.com/2009/04/prevent-duplicate-indexing-while-moving-threads-in-phpbb/' rel='bookmark' title='Permanent Link: Prevent duplicate indexing while moving threads in phpBB'>Prevent duplicate indexing while moving threads in phpBB</a></li>
<li><a href='http://techtitbits.com/2009/11/add-canonical-links-to-phpbb/' rel='bookmark' title='Permanent Link: Add canonical links to phpBB'>Add canonical links to phpBB</a></li>
<li><a href='http://techtitbits.com/2008/10/phpbb-redirect-broken-links-after-uninstalling-an-seo-mod/' rel='bookmark' title='Permanent Link: phpBB: Redirect broken links after uninstalling an SEO mod'>phpBB: Redirect broken links after uninstalling an SEO mod</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>In a default phpBB3 installation(without an SEO mod), the same thread can be accessed through many URLs. For example, the thread <a title="Favourite Animorphs fanfiction" href="http://animorphsfanforum.com/viewtopic.php?f=5&amp;t=60" target="_blank">Favourite Animorphs fanfiction</a> can be accessed through these different URLs :</p>
<blockquote>
<ul>
<li>http://animorphsfanforum.com/viewtopic.php?f=5&amp;t=60</li>
<li>http://animorphsfanforum.com/viewtopic.php?f=5&amp;p=659</li>
<li>http://animorphsfanforum.com/viewtopic.php?f=5&amp;t=60&amp;p=659</li>
<li>http://animorphsfanforum.com/viewtopic.php?f=5&amp;t=60&amp;p=659#p659</li>
<li>http://animorphsfanforum.com/viewtopic.php?t=60</li>
<li>http://animorphsfanforum.com/viewtopic.php?p=659</li>
<li>http://animorphsfanforum.com/viewtopic.php?f=5&amp;t=60&amp;st=0&amp;sk=t&amp;sd=a</li>
<li>http://animorphsfanforum.com/viewtopic.php?f=5&amp;t=60&amp;st=0&amp;sk=t&amp;sd=a#p659</li>
</ul>
</blockquote>
<p>The agressive Googlebot might pick almost all of those links and it might lead to potential ranking problems in <abbr title="Search Engine Results Page">SERP</abbr>s.</p>
<p>One way to resove this duplicate indexing is to install an SEO mod like <a title="PhpBB-SEO.com SEO mod" href="http://www.phpbb-seo.com/boards/phpbb-seo-toolkit/phpbb-seo-mod-rewrites-vt66.html">PhpBB-SEO.com SEO mod</a> or <a title="Handyman's SEO mod" href="http://www.phpbb.com/community/viewtopic.php?f=69&amp;t=691165" target="_blank">Handyman&#8217;s SEO mod</a>. But, installing and updating a mod with each phpBB3 update and/or mod update might get harrowing and burdensome. An alternative, albeit easier way to prevent duplicate indexing is to add these lines to your robots.txt :</p>
<p><code>User-agent: *<br />
Disallow: /viewtopic.php?p=<br />
Disallow: /viewtopic.php?=&amp;p=<br />
Disallow: /viewtopic.php?t=<br />
Disallow: /viewtopic.php?start=<br />
Disallow: /*&amp;view=previous<br />
Disallow: /*&amp;view=next<br />
Disallow: /*&amp;sid=<br />
Disallow: /*&amp;p=<br />
Disallow: /*&amp;sd=a<br />
Disallow: /*&amp;start=0<br />
</code></p>
<p>This will forbid all bots following robots.txt directives to crawl the redundant URLs. Your threads will only be accessible to the bots through the URL <code>http://www.domain.com/viewtopic.php?f=X&amp;t=X</code>.</p>
<p>Note(1): If you display Google Adsense ads in your forum pages, you might need to allow the Google Adsense bot(Mediapartners-Google) to access the &#8216;forbidden&#8217; URLs, so that it can crawl the pages and display relevant ads. So, you need to add these &#8216;extra&#8217; lines to your robots.txt :</p>
<p><code>User-agent: Mediapartners-Google<br />
Disallow:</code></p>
<p>This will allow the Mediapartners-Google bot to access the forbidden URLs.</p>
<p>Note(2): If your forum is on a subdirectory(say /forum/) rather than the root, append &#8220;/forum&#8221; to the robots.txt directives. It should look like this :</p>
<p><code>User-agent: *<br />
Disallow: /forum/viewtopic.php?p=<br />
Disallow: /forum/viewtopic.php?=&amp;p=<br />
Disallow: /forum/viewtopic.php?t=<br />
Disallow: /forum/viewtopic.php?start=<br />
Disallow: /forum/*&amp;view=previous<br />
Disallow: /forum/*&amp;view=next<br />
Disallow: /forum/*&amp;sid=<br />
Disallow: /forum/*&amp;p=<br />
Disallow: /forum/*&amp;sd=a<br />
Disallow: /forum/*&amp;start=0</code></p>
<p>If you face any problems, leave your comments and I&#8217;ll look into it.</p>


<p>Related posts:<ol><li><a href='http://techtitbits.com/2009/04/prevent-duplicate-indexing-while-moving-threads-in-phpbb/' rel='bookmark' title='Permanent Link: Prevent duplicate indexing while moving threads in phpBB'>Prevent duplicate indexing while moving threads in phpBB</a></li>
<li><a href='http://techtitbits.com/2009/11/add-canonical-links-to-phpbb/' rel='bookmark' title='Permanent Link: Add canonical links to phpBB'>Add canonical links to phpBB</a></li>
<li><a href='http://techtitbits.com/2008/10/phpbb-redirect-broken-links-after-uninstalling-an-seo-mod/' rel='bookmark' title='Permanent Link: phpBB: Redirect broken links after uninstalling an SEO mod'>phpBB: Redirect broken links after uninstalling an SEO mod</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techtitbits.com/2008/07/prevent-duplicate-indexing-of-phpbb3-threads-by-google/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>
