<?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>Wed, 09 May 2012 07:13:36 +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>.htaccess archived on AskApache.com</title>
		<link>http://techtitbits.com/2010/03/htaccess-archived-on-askapache-com/</link>
		<comments>http://techtitbits.com/2010/03/htaccess-archived-on-askapache-com/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 02:47:31 +0000</pubDate>
		<dc:creator>Ellimist</dc:creator>
				<category><![CDATA[Htaccess]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[AnimorphsFanForum.com]]></category>

		<guid isPermaLink="false">http://techtitbits.com/?p=404</guid>
		<description><![CDATA[An old copy of my .htaccess for AnimorphsfanForum.com seems to have been archived on AskApache.com. http://static.askapache.com/htaccess-files/htaccess-sample.txt I hope that it is helping some people. Update : Following this post, the .htaccess was removed from the site. You can still search for it using Google, though. The AskApache.com admin has kindly informed us that the file [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p><a href="http://techtitbits.com/wp-content/uploads/2010/03/askapache_search.jpg"><img class="aligncenter size-full wp-image-405" title="AskApache search" src="http://techtitbits.com/wp-content/uploads/2010/03/askapache_search.jpg" alt="AskApache search" width="618" height="209" /></a>An old copy of my .htaccess for <a href="http://animorphsfanforum.com" target="_blank">AnimorphsfanForum.com</a> seems to have been archived on <a href="http://www.askapache.com">AskApache.com</a>.</p>
<p><a href="http://static.askapache.com/htaccess-files/htaccess-sample.txt"><cite>http://static.askapache.com/htaccess-files/htaccess-sample.txt</cite></a></p>
<p>I hope that it is helping some people.</p>
<p>Update : <span style="text-decoration: line-through;">Following this post, the .htaccess was removed from the site. You can still <a href="http://www.google.co.in/search?q=SetEnv+SERVER_ADMIN+admin%40animorphsfanforum.com" target="_self">search for it</a> using Google, though.</span></p>
<p>The AskApache.com admin <a href="http://techtitbits.com/2010/03/htaccess-archived-on-askapache-com/#comment-31531">has kindly informed us</a> that the file was mistakenly not moved over during a host switch. It has been restored now.</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://techtitbits.com/2010/03/htaccess-archived-on-askapache-com/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<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>Ellimist</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 &#8217;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 [...]
Related posts:<ol>
<li><a href='http://techtitbits.com/2009/11/add-canonical-links-to-phpbb/' rel='bookmark' title='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='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='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 &#8217;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 &#8217;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; title: ; notranslate">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; title: ; notranslate">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='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='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='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>

