<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.3" -->
<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/"
	>

<channel>
	<title>Dryice Liu's Blog &#187; wordpress</title>
	<link>http://dryice.name/blog</link>
	<description></description>
	<pubDate>Tue, 31 Aug 2010 12:01:11 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.3</generator>
	<language>en</language>
			<item>
		<title>Google reader won&#8217;t follow 301</title>
		<link>http://dryice.name/blog/wordpress/google-reader-wont-follow-301/</link>
		<comments>http://dryice.name/blog/wordpress/google-reader-wont-follow-301/#comments</comments>
		<pubDate>Tue, 04 Sep 2007 04:21:26 +0000</pubDate>
		<dc:creator>dryice</dc:creator>
		
		<category><![CDATA[wordpress]]></category>
<category>blog</category><category>google</category><category>pyblosxom</category><category>reader</category><category>rss</category><category>wordpress</category>
		<guid isPermaLink="false">http://dryice.name/blog/wordpress/google-reader-wont-follow-301/</guid>
		<description><![CDATA[Well I said some time ago that I use mod_redirect while migrating from pyblosxom to wordpress. It turns out not all the RSS readers are following a 301 redirct. At least for the one I&#8217;m using, Google Reader, won&#8217;t do this. So now all my subscribers would think I no longer write blogs  
To [...]]]></description>
			<content:encoded><![CDATA[<p>Well I said some time ago that <a href="http://dryice.name/blog/wp-admin/I%20use%20mod_redirect%20while%20migrating%20from%20pyblosxom%20to%20wordpress" target="_blank">I use mod_redirect while migrating from pyblosxom to wordpress</a>. It turns out not all the RSS readers are following a 301 redirct. At least for the one I&#8217;m using, Google Reader, won&#8217;t do this. So now all my subscribers would think I no longer write blogs <img src='http://dryice.name/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>To fix this, I&#8217;d have to generate the index.rss file manually:</p>
<div style="font-family: monospace;font-size: 110%; color: #000066; border: 1px solid orange; margin: 5px; padding: 5px; background-color: #ffffff;">wget http://dryice.name/blog/rss -O index.rss</div>
<p>and add this to a cron job.</p>
<p>I&#8217;ll follow this up and report if this works with Google Reader (it should). The drawback is that this feed is not &#8220;realtime&#8221;. I set the cron job to update the feed once a day, cause most of the time I won&#8217;t write two blogs a day, so for now Google Reader users will get a bit delay, but hay, it&#8217;s better than not getting update, right?</p>
<p>And for all my subscribers still using http://dryice.name/blog/index.rss: please update to http://dryice.name/blog/rss. Thanks!</p>
<p><hints id="hah_hints"></hints></p>
<p class="akst_link"><a href="http://dryice.name/blog/?p=845&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_845" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://dryice.name/blog/wordpress/google-reader-wont-follow-301/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Use Pretty Permalinks on Lighttpd</title>
		<link>http://dryice.name/blog/wordpress/use-pretty-permalinks-on-lighttpd/</link>
		<comments>http://dryice.name/blog/wordpress/use-pretty-permalinks-on-lighttpd/#comments</comments>
		<pubDate>Wed, 15 Aug 2007 07:28:54 +0000</pubDate>
		<dc:creator>dryice</dc:creator>
		
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://dryice.name/blog/wordpress/use-pretty-permalinks-on-lighttpd/</guid>
		<description><![CDATA[ Well on the WordPress site they said the Pretty Permalinks like
/category/title is only available on Apache. Well this is definitely
not true as long as you know your web server.
Here is how I made it with Lighttpd, and some tips to keep my original
rss link.
My original rss link is http://dryice.name/blog/index.rss. The new rss
link is http://dryice.name/blog/rss/. And [...]]]></description>
			<content:encoded><![CDATA[<p> Well on the <a href="http://codex.wordpress.org/Using_Permalinks" class="reference">WordPress site</a> they said the Pretty Permalinks like<br />
/category/title is only available on Apache. Well this is definitely<br />
not true as long as you know your web server.</p>
<p>Here is how I made it with <a href="http://lighttpd.org" class="reference">Lighttpd</a>, and some tips to keep my original<br />
rss link.</p>
<p>My original rss link is <a href="http://dryice.name/blog/index.rss" class="reference">http://dryice.name/blog/index.rss</a>. The new rss<br />
link is <a href="http://dryice.name/blog/rss/" class="reference">http://dryice.name/blog/rss/</a>. And I can use the &#8220;almost<br />
pretty&#8221; link like /index.php/%category%/</p>
<p>Here&#8217;s what I do. I&#8217;ll use /blog instead of /wordpress as the root of<br />
my blog to keep consisten with my original Pyblosxom URL.</p>
<ol class="arabic">
<li>
<p class="first">In the admin page, options-&gt;general. Make sure &#8220;WordPress address&#8221;<br />
and &#8220;blog address&#8221; are <a href="http://dryice.name/blog" class="reference">http://dryice.name/blog</a></li>
<li>
<p class="first">In options-&gt;permalinks, select &#8220;custome, specify below&#8221; and fill in:</p>
<div style="font-family: monospace;font-size: 110%; color: #000066; border: 1px solid orange; margin: 5px; padding: 5px; background-color: #ffffff;">/%category%/%postname%/</div>
</li>
</ol>
<p>and then update.</p>
<ol class="arabic" start="3">
<li>
<p class="first">In the lighttpd.conf file, add:</p>
<div style="font-family: monospace;font-size: 110%; color: #000066; border: 1px solid orange; margin: 5px; padding: 5px; background-color: #ffffff;">url.rewrite-once = (<br />
&quot;^/blog/((?!(sitemap.xml|wp-)).*)$&quot; =&amp;gt; &quot;/blog/index.php/$1&quot;,<br />
)</div>
</li>
</ol>
<p>This line tells lighttpd to rewriete any URLs under /blog but not<br />
sitemap.xml and not started with wp- to be write to<br />
/blog/index.php/.., which will show the correct article, search<br />
result, tag, etc.</p>
<p>If you don&#8217;t have a previous blog, then you are all done. Restart<br />
lighttpd and it should work.</p>
<ol class="arabic" start="4">
<li>
<p class="first">If you need to keep some previous link like me, change the rewrite<br />
rule like this:</p>
<div style="font-family: monospace;font-size: 110%; color: #000066; border: 1px solid orange; margin: 5px; padding: 5px; background-color: #ffffff;">url.rewrite-once = (<br />
&quot;^/blog/((?!(sitemap.xml|index.rss|wp-)).*)$&quot; =&amp;gt; &quot;/blog/index.php/$1&quot;,<br />
)</div>
<p>and add a re-direct rule:</p>
<div style="font-family: monospace;font-size: 110%; color: #000066; border: 1px solid orange; margin: 5px; padding: 5px; background-color: #ffffff;">url.redirect = (<br />
&quot;^/blog/index.rss&quot; &nbsp;=&amp;gt; &quot;/blog/rss&quot;,<br />
)</div>
<p>We need to update the rewrite because in <a href="http://lighttpd.org" aiotitle="Lighttpd" class="reference">Lighttpd</a>, re-write happens<br />
<strong>BEFORE</strong> re-direct. So we have to prevent the re-write of<br />
/blog/index.rss there.</li>
</ol>
<p><hints id="hah_hints"></hints></p>
<p>Update(Sep 4, 2007) Some RSS readers won&#8217;t follow 301 redirect, for example, Google Reader (as of this writing). Please read <a href="http://dryice.name/blog/wordpress/google-reader-wont-follow-301/" target="_blank">my another post</a> about this.</p>
<p class="akst_link"><a href="http://dryice.name/blog/?p=836&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_836" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://dryice.name/blog/wordpress/use-pretty-permalinks-on-lighttpd/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

