<?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>ostebaronen.dk &#187; rewrite</title>
	<atom:link href="http://ostebaronen.dk/tag/rewrite/feed/" rel="self" type="application/rss+xml" />
	<link>http://ostebaronen.dk</link>
	<description>write letters and shit, yo!</description>
	<lastBuildDate>Fri, 20 Aug 2010 09:35:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Rewrite for lighthttpd with WordPress</title>
		<link>http://ostebaronen.dk/mod_rewrite-for-lighthttpd-with-wordpress/</link>
		<comments>http://ostebaronen.dk/mod_rewrite-for-lighthttpd-with-wordpress/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 13:47:35 +0000</pubDate>
		<dc:creator>ostebaronen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[lighthttpd]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[permalinks]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://ostebaronen.dk/?p=263</guid>
		<description><![CDATA[Emil Haukeland wrote a very nice guide on how to configure rewrite so it works with lighthttpd and WordPress. To quickly sum it up add the following rules to your lighthttpd.conf or 10-rewrite.conf and save it in lighthttpd&#8217;s configuration folder. $HTTP["host"] =~ "ostebaronen.dk" { url.rewrite-final = ( # Exclude some directories from rewriting "^/(wp-admin&#124;wp-includes&#124;wp-content&#124;gallery2)/(.*)" =&#62; [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Emil Haukeland's Blog" href="http://emil.haukeland.name" target="_blank">Emil Haukeland</a> wrote a very nice guide on how to configure rewrite so it works with lighthttpd and WordPress. To quickly sum it up add the following rules to your lighthttpd.conf or 10-rewrite.conf and save it in lighthttpd&#8217;s configuration folder.</p>
<pre><code>
$HTTP["host"] =~ "ostebaronen.dk" {
  url.rewrite-final = (

    # Exclude some directories from rewriting
    "^/(wp-admin|wp-includes|wp-content|gallery2)/(.*)" =&gt; "$0",

    # Exclude .php files at root from rewriting
    "^/(.*.php)" =&gt; "$0",

    # Handle permalinks and feeds
    "^/(.*)$" =&gt; "/index.php/$1"
  )
}
</code></pre>
<p>Then edit the settings for permalinks in WordPress.</p>
<p>Many thanks to <a title="Emil Haukeland's Blog" href="http://emil.haukeland.name" target="_blank">Emil Haukeland</a>, find the his original blog post on his personal blog: <a title="rewriting for wordpress and lighthttpd" href="http://emil.haukeland.name/2007/02/11/url-rewriting-for-wordpress-and-lighttpd/" target="_blank">emil.haukeland.name</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ostebaronen.dk/mod_rewrite-for-lighthttpd-with-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
