<?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; Htaccess</title>
	<atom:link href="http://techtitbits.com/category/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://techtitbits.com</link>
	<description>Titbits of technology, with extra sauce</description>
	<lastBuildDate>Tue, 16 Mar 2010 14:26:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>phpBB: Redirect broken links after uninstalling an SEO mod</title>
		<link>http://techtitbits.com/2008/10/phpbb-redirect-broken-links-after-uninstalling-an-seo-mod/</link>
		<comments>http://techtitbits.com/2008/10/phpbb-redirect-broken-links-after-uninstalling-an-seo-mod/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 13:11:19 +0000</pubDate>
		<dc:creator>Soumik</dc:creator>
				<category><![CDATA[Htaccess]]></category>
		<category><![CDATA[phpBB]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[phpBB3]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[SEO mod]]></category>
		<category><![CDATA[SERP]]></category>

		<guid isPermaLink="false">http://techtitbits.com/?p=84</guid>
		<description><![CDATA[SEO mods beautify your URLs and make them more spider friendly. But what happens when you uninstall an SEO mod? These SEOed URLs becomes broken and return an error code of &#8216;404 Not Found&#8217;. And these obsolete links can be very harmful for your Search Engine Results Page(SERP) rankings.
I&#8217;ve got emails from concerned phpBB forum [...]


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/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>SEO mods beautify your URLs and make them more spider friendly. But what happens when you uninstall an SEO mod? These SEOed URLs becomes broken and return an error code of &#8216;404 Not Found&#8217;. And these obsolete links can be very harmful for your Search Engine Results Page(<abbr title="Search Engine Results Page">SERP</abbr>) rankings.</p>
<p>I&#8217;ve got emails from concerned phpBB forum administrators saying that their position in the <abbr title="Search Engine Results Page">SERP</abbr>s have taken a dip after they had uninstalled their SEO mods and used my <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">phpBB robots.txt duplicate indexing fix</a>. What they need to do is redirect these broken links to the vanilla phpBB links. Using some simple rewrite rules, we can redirect those broken links to their proper place. And we&#8217;ll return a &#8216;301 Permanently Moved&#8217; header so that the threads eventually recover their pagerank and <abbr title="Search Engine Results Page">SERP positions.</abbr><br />
I&#8217;ll be using dcz&#8217;s <a title="Advanced phpBB3 SEO mod Rewrite" href="http://www.phpbb-seo.com/boards/advanced-seo-url/advanced-phpbb3-seo-url-vt1219.html">Advanced phpBB3 SEO mod Rewrite</a> as an example. This rewrites the URLs as follows :</p>
<pre class="brush: plain;">viewforum.php?f=XX =&gt; any-keywords-fXX.html
viewforum.php?f=XX&amp;start=YY =&gt; any-keywords-fXX-YY.html
viewtopic.php?f=XX&amp;t=YY =&gt; any-keywords-fXX/topic-title-tYY.html
viewtopic.php?f=XX&amp;t=YY&amp;start=ZZ =&gt; any-keywords-fXX/topic-title-tYY-ZZ.html
viewtopic.php?p=XX =&gt; postXX.html
memberlist.php?mode=viewprofile&amp;u=XX =&gt; memberXX.html</pre>
<p>To redirect the broken/obsolete URLs, you need to add the following piece of code to your .htaccess file at the root of the forum :</p>
<pre class="brush: plain;">Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteRule ^[^/\.]+-f([0-9]+)\.html?$ /viewforum.php?f=$1 [R=301,L]
RewriteRule ^[^/\.]+-f([0-9]+)-([0-9]+)\.html?$ /viewforum.php?f=$1&amp;start=$2 [R=301,L]
RewriteRule ^[^/\.]+-f([0-9]+)/[^/\.]+-t([0-9]+)\.html?$ /viewtopic.php?f=$1&amp;t=$2 [R=301,L]
RewriteRule ^[^/\.]+-f([0-9]+)/[^/\.]+-t([0-9]+)-([0-9]+)\.html?$ /viewtopic.php?f=$1&amp;t=$2&amp;start=$3 [R=301,L]
RewriteRule ^post([0-9]+)\.html?$ /viewtopic.php?p=$1 [R=301,L]
RewriteRule ^member([0-9]+)\.html?$ /memberlist.php?mode=viewprofile&amp;u=$1 [R=301,L]</pre>
<p>These rules will ensure that those SEOed URLs are 301 redirected to the proper phpBB vanilla URLs, and you&#8217;ll eventually recover your pagerank and SERP position.</p>
<p>If you have a problem or you need mod_rewrite rules for another variant of an SEO mod, leave a comment and I&#8217;ll help you.</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/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/2008/10/phpbb-redirect-broken-links-after-uninstalling-an-seo-mod/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
