<?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>bybjorn.com &#124; Bjørn Børresen - freelance web developer &#187; wordpress</title>
	<atom:link href="http://www.bybjorn.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bybjorn.com</link>
	<description>bybjorn.com &#62;&#62; Bjørn Børresen - freelance web developer</description>
	<lastBuildDate>Tue, 27 Jul 2010 11:08:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to move a WordPress installation and keep linkjuice</title>
		<link>http://www.bybjorn.com/239/</link>
		<comments>http://www.bybjorn.com/239/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 20:06:19 +0000</pubDate>
		<dc:creator>Bjørn Børresen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.bybjorn.com/?p=239</guid>
		<description><![CDATA[Recently I went freelance and decided to rebrand myself &#8211; thus the need to move my blog from one domain to another. Of course, that meant moving the content to a new WordPress install, but also &#8211; since my old blog had a handy pagerank of 5 and lots of incoming linkjuice &#8211; I needed [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I went freelance and decided to rebrand myself &#8211; thus the need to move my blog from one domain to another. Of course, that meant moving the content to a new WordPress install, but also &#8211; since my old blog had a handy pagerank of 5 and lots of incoming linkjuice &#8211; I needed to redirect all this to my new blog. To make things even more complicated, I had decided to go away from my original link-format of &#8220;bie.no/category/second-category/blog-post-title-here&#8221; to the shorter &#8220;bybjorn.com/10&#8243;. Needless to say, I did not want to break existing links. It turned out to be a whole lot easier than expected.</p>

<p>First off, the <a href="http://codex.wordpress.org/Administration_Panels#Export">WordPress export / import tool</a> works like a charm[1]. Second, I wrote a simple .htaccess to forward everything to an index.php which then again redirects everything (including the query string) to the new url. That means <em>bie.no/category/blog-post-here</em> for example will be redirected to <em>bybjorn.com/category/blog-post-here</em> .. and WordPress is smart enough to understand the original link-format, and then redirect to the new one I&#8217;ve chosen for this blog. So the user will end up on bybjorn.com/10, all incoming links work and all link-juice transferred (using 301 redirects).</p>

<p>index.php:
<pre class="brush: php;">
 header ('HTTP/1.1 301 Moved Permanently');
 $i = $_GET['i']; if($i != &quot;&quot;) {$location = &quot;http://www.bybjorn.com/&quot; . $i;
 } else { $location = &quot;http://www.bybjorn.com/&quot;;}
 header ('Location: '.$location);</pre></p>

<p>.htaccess
<pre class="brush: plain;">
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?i=$1 [L]
</pre></p>

<p>Here&#8217;s the process in easy to understand list-format;</p>

<ol>
<li>Install WordPress on the new location</li>
<li>Use WordPress&#8217; built in export tool to do a full export of your original blog</li>
<li>Upload the export file and use the same tool in the WordPress admin to import the data to the new blog</li>
<li>Download and activate any plugins you had on your original blog (akismet, textile, etc)</li>
<li>May be the case: go through all the blogposts and fix direct links to files etc. you have posted on your old domain (if such exists)</li>
<li>Delete your old blog, and upload this new index.php and this .htaccess</li>
</ol>

<p>Enjoy!</p>

<p>[1] (unless you have large amounts of data)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bybjorn.com/239/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Another reason to switch from WordPress to ExpressionEngine</title>
		<link>http://www.bybjorn.com/78/</link>
		<comments>http://www.bybjorn.com/78/#comments</comments>
		<pubDate>Mon, 11 Feb 2008 17:50:15 +0000</pubDate>
		<dc:creator>Bjørn Børresen</dc:creator>
				<category><![CDATA[ExpressionEngine]]></category>
		<category><![CDATA[metadata]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://bie.no/blog/metabjorn/2008/02/another-reason-to-switch-from-wordpress-to-expressionengine/</guid>
		<description><![CDATA[Ok, this post had some info about switching to ExpressionEngine since WP was so insecure. It turns out my WP install was hacked and the content here was replaced by lots of spam links. I don&#8217;t know how to get the content back (unless it was indexed somewhere, took a quick google but didn&#8217;t find [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, this post had some info about switching to <a href="http://www.expressionengine.no">ExpressionEngine</a> since  WP was so insecure.</p>

<p>It turns out my WP install was hacked and the content here was replaced by lots of spam links. I don&#8217;t know how to get the content back (unless it was indexed somewhere, took a quick google but didn&#8217;t find anything) .. Oh, the irony.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bybjorn.com/78/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
