<?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>Mats Lindh &#187; Serendipity</title>
	<atom:link href="http://e-mats.org/category/serendipity/feed/" rel="self" type="application/rss+xml" />
	<link>http://e-mats.org</link>
	<description>Where desperate is just another word for a regular day.</description>
	<lastBuildDate>Fri, 23 Jul 2010 14:23:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>The Story of Migrating From Serendipity (s9y) to WordPress</title>
		<link>http://e-mats.org/2008/05/the-story-of-migrating-from-serendipity-s9y-to-wordpress/</link>
		<comments>http://e-mats.org/2008/05/the-story-of-migrating-from-serendipity-s9y-to-wordpress/#comments</comments>
		<pubDate>Sat, 03 May 2008 20:50:25 +0000</pubDate>
		<dc:creator>Mats</dc:creator>
				<category><![CDATA[Serendipity]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[migrating]]></category>
		<category><![CDATA[s9y]]></category>

		<guid isPermaLink="false">http://e-mats.org/?p=54</guid>
		<description><![CDATA[As I posted a couple of days ago, I&#8217;ve moved the blog from Serendipity to WordPress. The reasen for this was detailed in the other post, as I simply weren&#8217;t too happy about how s9y worked in regards to pingbacks/trackbacks and the general quality of the code. Anyways, this is a general post for those [...]]]></description>
			<content:encoded><![CDATA[<p>As I posted a couple of days ago, I&#8217;ve moved the blog from Serendipity to WordPress. The reasen for this was detailed in the other post, as I simply weren&#8217;t too happy about how s9y worked in regards to pingbacks/trackbacks and the general quality of the code. Anyways, this is a general post for those who wish to make the same move, and are wondering about how.</p>
<p>After installing WordPress, delete all the existing posts in the database and reset the AUTO_INCREMENT value (needed if you want to keep your old links working). If you do not do this, your ID values may be skewed by 2 or more. Download and install <a href='http://technosailor.com/2007/01/02/new-version-of-serendipity-s9y-to-wordpress-importer-available/'>the Serendipity importer for WordPress</a>. After installing it you&#8217;ll have a new option under &#8220;Manage&#8221; -&gt; Import that enables you to import your posts from s9y. Do the import, and check that your posts got the same IDs as they had under s9y.</p>
<p>Then you&#8217;ll have to do some fiddling with the <strong>.htaccess</strong> file, so that mod_rewrite knows about your old URL scheme. These rules worked for my installation of s9y, your milage may vary (and please, if you find any problems, post a comment or a pingback to your fixes). Add the following lines together with the existing WordPress rules:</p>
<pre>
RewriteRule ^archives/([0-9]+)\-[a-zA-Z\-_]+.html$ /index.php?p=$1 [L]
RewriteRule ^feeds/index.rss2$ /feed/ [L,R=301]
RewriteRule ^feeds/index.rss1$ /feed/ [L,R=301]
RewriteRule ^feeds/index.rss$ /feed/ [L,R=301]
</pre>
<p>This should also keep most of the RSS-readers out there happy, but you might want to change the feed addresses if you have several different formats of the RSS available. This does not include the category/ etc. links from s9y, but those will be reindexed at a later time by any search engine anyways. The most important thing is to ensure that people who are looking for your old posts still are able to find them.</p>
]]></content:encoded>
			<wfw:commentRss>http://e-mats.org/2008/05/the-story-of-migrating-from-serendipity-s9y-to-wordpress/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
