<?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>bits4life &#187; apache</title>
	<atom:link href="http://blog.export.be/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.export.be</link>
	<description>Bits and bytes for your daily life.</description>
	<lastBuildDate>Thu, 12 Nov 2009 10:55:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Permalink rewrite fix for Wordpress</title>
		<link>http://blog.export.be/2009/07/permalink-rewrite-fix-for-wordpress/</link>
		<comments>http://blog.export.be/2009/07/permalink-rewrite-fix-for-wordpress/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 12:33:47 +0000</pubDate>
		<dc:creator>koma</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.export.be/?p=289</guid>
		<description><![CDATA[This site is powered by Wordpress running on Ubuntu. Some of you might have noticed we recently changed the permalink structure. Permalinks are the permanent links to the posts or categories in a blog site. Permalink can be used to link to your article or category by other blogs or sites, or to send a [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-medium wp-image-288" title="wordpress_icon_big" src="http://blog.export.be/wp-content/uploads/2009/07/wordpress_icon_big-300x267.png" alt="wordpress_icon_big" width="88" height="78" />This site is powered by Wordpress running on Ubuntu. Some of you might have noticed we recently changed the permalink structure. Permalinks are the permanent links to the posts or categories in a blog site. Permalink can be used to link to your article or category by other blogs or sites, or to send a link to your story in an e-mail message.</p>
<p>The permalinks now all have the structure /%year%/%monthnum%/%postname%/ where the previous the structure was /%post_id%. Permalink rewrites are based on the Apache Rewrite engine and there are a few caveats when changing the permalink structure. Here&#8217;s a checklist to get you going&#8230;</p>
<p><span id="more-289"></span>First of all, you must make sure that the mod_rewrite module is loaded in your apache instance.</p>
<blockquote><p>root@export:/var/www/blog# apache2ctl -t -D DUMP_MODULES</p></blockquote>
<p>and check for</p>
<blockquote><p>rewrite_module (shared)</p></blockquote>
<p>If not, checkout the <a title="Apache Rewrite Module" href="http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html" target="_blank">apache document on rewrite engine</a> to enable this module in your apache instance.</p>
<p>Finally, make sure your virtual host configuration has :</p>
<blockquote><p>RewriteEngine On</p></blockquote>
<p>When changing the permalink structure in your Wordpress backend, it will generate a .htaccess file. This is what it looks like for our permalink structure :</p>
<blockquote><p># BEGIN WordPress<br />
&lt;IfModule mod_rewrite.c&gt;<br />
RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . /index.php [L]<br />
&lt;/IfModule&gt;</p>
<p># END WordPress</p></blockquote>
<p>Normally, this is supposed to be the end of the story but when you receive a 404 surfing to your newly generated links, then verify the following two settings in your virtual host configuration :</p>
<ul>
<li> The <a title="http://httpd.apache.org/docs/1.3/mod/core.html#options" href="http://httpd.apache.org/docs/1.3/mod/core.html#options">FollowSymLinks option</a> enabled</li>
<li> <a title="http://httpd.apache.org/docs/1.3/mod/core.html#allowoverride" href="http://httpd.apache.org/docs/1.3/mod/core.html#allowoverride"><tt>FileInfo</tt> directives</a> allowed (e.g. <code>AllowOverride FileInfo</code> or <code>AllowOverride All</code>)</li>
</ul>
<p>Good luck!</p>
<p>PS: If you don&#8217;t want to loose your pagerank for the posts that have incoming links using the old permalink structure, go checkout  &#8220;<a title="Permalink Migration" href="http://www.deanlee.cn/wordpress/permalinks-migration-plugin/" target="_blank">Dean&#8217;s Permalinks Migration 1.0</a>&#8220;. This will redirect the old permalinks to your new structure, and keep Google happy <img src='http://blog.export.be/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  It is available from the plugins menu in the Wordpress backend.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.export.be/2009/07/permalink-rewrite-fix-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
