<?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>Bit Matrix &#187; apache</title>
	<atom:link href="http://blog.bit-matrix.com/category/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.bit-matrix.com</link>
	<description>Tech. Code. Linux. MySQL. Ones. Zeroes.</description>
	<lastBuildDate>Tue, 31 Aug 2010 01:10:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Generate your own Wordpress Permalink without GUIDs from database</title>
		<link>http://blog.bit-matrix.com/2010/03/01/generate-your-own-wordpress-permalink-without-guids-from-database/</link>
		<comments>http://blog.bit-matrix.com/2010/03/01/generate-your-own-wordpress-permalink-without-guids-from-database/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 19:25:31 +0000</pubDate>
		<dc:creator>Bit Matrix</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[guid]]></category>

		<guid isPermaLink="false">http://blog.bit-matrix.com/?p=134</guid>
		<description><![CDATA[If you are generating links to your blog articles via some other mechanism than Wordpress itself you usually have to use the guid database field. This is the unique global indentifier of the post. In reality it is not globally unique but only unique to your blog.
Typically, the guid in the database will look something [...]]]></description>
			<content:encoded><![CDATA[<p>If you are generating links to your blog articles via some other mechanism than Wordpress itself you usually have to use the <b>guid</b> database field. This is the unique global indentifier of the post. In reality it is not globally unique but only unique to your blog.<span id="more-134"></span></p>
<p>Typically, the guid in the database will look something like this:</p>
<blockquote><p>http://blog.bit-matrix.com/?p=2411</p></blockquote>
<p>You can use this perfectly fine but it will hurt your SEO since search sites prefer descriptive links such as:</p>
<blockquote><p>http://blog.bit-matrix.com/2010/02/10/google-buzz-a-privacy-disaster</p></blockquote>
<p>As it turns out, you can easily construct this link from the database yourself. Wordpress will recognize the format of the link and display the appropriate post. The query to construct this is quite simple, all we need is a little date formatting:</p>
<blockquote><p>SELECT CONCAT(DATE_FORMAT(post_date,&#8217;%Y/%m/%d/&#8217;),post_name) AS permalink FROM wp_posts WHERE post_status=&#8217;publish&#8217;;</p></blockquote>
<p>This will return all the published post guid&#8217;s in the following format:</p>
<blockquote><p>2010/02/10/google-buzz-a-privacy-disaster</p></blockquote>
<p>That&#8217;s all!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bit-matrix.com/2010/03/01/generate-your-own-wordpress-permalink-without-guids-from-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lower-case all URLs with Apache mod_rewrite</title>
		<link>http://blog.bit-matrix.com/2010/02/05/lower-case-all-urls-with-apache-mod_rewrite/</link>
		<comments>http://blog.bit-matrix.com/2010/02/05/lower-case-all-urls-with-apache-mod_rewrite/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 20:46:36 +0000</pubDate>
		<dc:creator>Bit Matrix</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://blog.bit-matrix.com/?p=109</guid>
		<description><![CDATA[Search engines, like Google, will index URLs on your site in a case-sensitive fashion, so www.yoursite.com/iamtest shows up as a different page than www.yoursite.com/iAmTest. This has negative consequences for your search rankings as these different URLs will be interpreted as duplicate content.
In this case we want to re-direct our users and any bots to the [...]]]></description>
			<content:encoded><![CDATA[<p>Search engines, like Google, will index URLs on your site in a case-sensitive fashion, so www.yoursite.com/iamtest shows up as a different page than www.yoursite.com/iAmTest. This has negative consequences for your search rankings as these different URLs will be interpreted as duplicate content.<span id="more-109"></span></p>
<p>In this case we want to re-direct our users and any bots to the same version of the URL (i.e. all lowercase). If you are running Apache, make sure <b>mod_rewrite</b> is installed and make the following changes to your configuration.</p>
<p>1. In your server config or virtual host file:<br />
<code>RewriteMap  lc int:tolower</code></p>
<p>2. In your .htaccess file at the root of your site:<br />
<code><br />
# Lower-case and 301 all requests<br />
RewriteEngine On<br />
RewriteCond %{REQUEST_URI} [A-Z]<br />
RewriteRule ^(.*)$ /${lc:$1} [L,R=301]<br />
</code></p>
<p><b>Note:</b> Beware that some standard files are mixed case and might be broken by doing this (such as AC_RunActiveContent.js).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bit-matrix.com/2010/02/05/lower-case-all-urls-with-apache-mod_rewrite/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
