Problems with Dean’s Permalinks Migration after WordPress
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 an old link to one of my WordPress sites I got a 404 message.
It turns out that Dean’s Permalinks Migration plugin stopped working after WordPress 2.7 (i assume at least, I didn’t do any research about it). You use Dean’s Permalinks Migration plugin to do a 301 (SEO friendly) redirect from your old permalink structure to a new one.
I used /year/month/day/post-title before but I wanted to change to just /post-title and Dean’s Permalinks Migration plugin worked great. But as I said before it stopped working after we installed WordPress 2.7.
The solution I found was to install another plugin called Redirection that is used to do all sorts of redirects in WordPress. After I installed the plugin I just added a regular expression redirect like this.
This means something like redirecting 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.