Posted by admin on

WordPress 301 Redirects

I am looking to 301 my old site. This would seem to be complicated by the need to transform the permalinks from ./YYYY/MM/DD/slug into ./slug. Here are my notes, 
I am using the redirection plugin and I have set up a rule to redirect from the root i.e. to
I have logged a support message on their support forum. They replied and pointed me at this page, on their site called redirect regular expressions.
I have inserted the following redirection on the target blog. ^/\d{4}/\d{2}/\d{2}/(.*) /$1/ which translates the old permalink format into the new and shorter one.
I have inserted the following rules on the old blog i.e. http://blog.davelevy,info.
i.e. for everything except wp-admin, pass the URL onto the new site, I also have a rule to pass the top level blog page onto the new blog home page since the blog is no longer the home page for the new site.
Image Credit: at flickr CC Banalities 2009 BY

This site uses Akismet to reduce spam. Learn how your comment data is processed.

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.