<?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>Codepolice.net &#187; Dean&#8217;s Permalinks Migration</title>
	<atom:link href="http://codepolice.net/tag/deans-permalinks-migration/feed/" rel="self" type="application/rss+xml" />
	<link>http://codepolice.net</link>
	<description>C#, ASP.NET, MVC, LINQ, Wordpress and stuff like that</description>
	<lastBuildDate>Wed, 01 Sep 2010 08:05:39 +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>Problems with Dean&#8217;s Permalinks Migration after WordPress 2.7</title>
		<link>http://codepolice.net/2008/12/22/problems-deans-permalinks-migration-wordpress-27/</link>
		<comments>http://codepolice.net/2008/12/22/problems-deans-permalinks-migration-wordpress-27/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 12:09:32 +0000</pubDate>
		<dc:creator>Ola</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[301]]></category>
		<category><![CDATA[Dean's Permalinks Migration]]></category>
		<category><![CDATA[Permalinks]]></category>
		<category><![CDATA[Redirection]]></category>

		<guid isPermaLink="false">http://www.codepolice.net/?p=105</guid>
		<description><![CDATA[I updated to WordPress 2.7 when it was released and on the surface everything seemed to work just fine. Then today when i clicked a old link to one of my wordpress sites i got a 404 message. It turns out that Dean&#8217;s Permalinks Migration plugin stopped working after WordPress 2.7 (i assume at least, [...]]]></description>
			<content:encoded><![CDATA[<p>I updated to WordPress 2.7 when it was released and on the surface everything seemed to work just fine. Then today when i clicked a old link to one of my wordpress sites i got a 404 message.</p>
<p>It turns out that <a href="http://www.deanlee.cn/wordpress/permalinks-migration-plugin/">Dean&#8217;s Permalinks Migration plugin</a> stopped working after WordPress 2.7 (i assume at least, i didn&#8217;t do any research about it). You use Dean&#8217;s Permalinks Migration plugin to do a 301 (SEO friendly) redirect from your old permalink structure to a new one.</p>
<p>I used /year/month/day/post-title before but i wanted to change to just /post-title and Dean&#8217;s Permalinks Migration plugin worked great. But as i said before it stopped worked after we installed WordPress 2.7.</p>
<p>The solution i found was to install another plugin called <a href="http://urbangiraffe.com/plugins/redirection/">Redirection</a> that is used to do all sort of redirects in WordPress. After i installed the plugin i just added a regular expression redirect like this.</p>
<p><img class="aligncenter size-full wp-image-106" title="301-redirect" src="http://www.codepolice.net/wp-content/uploads/2008/12/301-redirect.png" alt="301-redirect" width="373" height="148" /></p>
<p>This means something like redirect any url that looks like /digits/digits/digits/text to /text. The $4 means to grab the text from the last * in the source URL.</p>
]]></content:encoded>
			<wfw:commentRss>http://codepolice.net/2008/12/22/problems-deans-permalinks-migration-wordpress-27/feed/</wfw:commentRss>
		<slash:comments>3</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! -->