<?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>Saved for later reference &#187; migration</title>
	<atom:link href="http://www.lejordet.com/tag/migration/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lejordet.com</link>
	<description>online repository of stuff I had to google for hours to figure out</description>
	<lastBuildDate>Tue, 06 Jul 2010 13:26:36 +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>Moving to new domain</title>
		<link>http://www.lejordet.com/2009/08/moving-to-new-domain/</link>
		<comments>http://www.lejordet.com/2009/08/moving-to-new-domain/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 11:48:04 +0000</pubDate>
		<dc:creator>Lars Erik Jordet</dc:creator>
				<category><![CDATA[SFLR]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[meta]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.lejordet.com/2009/08/moving-to-new-domain/</guid>
		<description><![CDATA[SFLR was moved to a new domain, and a few of the pitfalls on the way are described.]]></description>
			<content:encoded><![CDATA[<p>SFLR moved WordPress from vagabonds.info/wp to lejordet.com.</p>
<p>In spirit of the site, here are some of the pitfalls of moving WordPress:</p>
<h2>Getting search engines to redirect correctly</h2>
<p>I set up the old site to return 
<a  href="http://en.wikipedia.org/wiki/HTTP_301" onclick="javascript:pageTracker._trackPageview('/external/en.wikipedia.org/wiki/HTTP_301');" >HTTP 301 &#8211; Moved Permanently</a> by putting the following .htaccess file in the /wp folder:</p>
<div class="codecolorer-container apache blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="apache codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #00007f;">RewriteEngine</span> <span style="color: #0000ff;">on</span><br />
<br />
<span style="color: #00007f;">RewriteCond</span> %{HTTP_HOST} ^([^.:]+\.)*vagabonds\.info\.?(:[<span style="color: #ff0000;">0</span>-<span style="color: #ff0000;">9</span>]*)?$ [NC]<br />
<span style="color: #00007f;">RewriteRule</span> ^(.*)$ http://www.lejordet.com/$<span style="color: #ff0000;">1</span> [R=<span style="color: #ff0000;">301</span>,L]</div></td></tr></tbody></table></div>
<p>This ensures that (most) search engines consider the new location as equivalent to the previous, and will &#8211; hopefully &#8211; make only the new location appear in search results.</p>
<h2>All my WordPress pages are blank after the move!</h2>
<p>Assuming you&#8217;ve followed the 
<a  href="http://codex.wordpress.org/Moving_WordPress" onclick="javascript:pageTracker._trackPageview('/external/codex.wordpress.org/Moving_WordPress');" >standard operating procedure</a> for moving the blog, and all 
<a  href="http://www.mydigitallife.info/2007/10/01/how-to-move-wordpress-blog-to-new-domain-or-location/" onclick="javascript:pageTracker._trackPageview('/external/www.mydigitallife.info/2007/10/01/how-to-move-wordpress-blog-to-new-domain-or-location/');" >database entries are updated</a> to the new path (I did this part manually, but the linked procedure seems OK), the most likely reason is that your plugins are still using the old path. If you can still re-enable the old path (in my case, I moved /wp to /wp-deactivated), go in to the admin panel and deactivate all plugins.</p>
<p>They can also be 
<a  href="http://www.bestwpthemez.com/wordpress/how-to-disable-all-wordpress-plugins-from-the-database-2205/" onclick="javascript:pageTracker._trackPageview('/external/www.bestwpthemez.com/wordpress/how-to-disable-all-wordpress-plugins-from-the-database-2205/');" >deactivated from the database</a>, if you have no way of returning to the old installation:</p>
<div class="codecolorer-container sql blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="sql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #993333; font-weight: bold;">UPDATE</span> wp_options <span style="color: #993333; font-weight: bold;">SET</span> option_value <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">''</span> <span style="color: #993333; font-weight: bold;">WHERE</span> option_name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'active_plugins'</span>;</div></td></tr></tbody></table></div>
<p>When everything works again you can reactivate the plugins, and things should be back to normal.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lejordet.com/2009/08/moving-to-new-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->