As I recover from a pretty dire week, I thought I should make better use of the virtual server I have with unixshell, so I decided to switch this blog from typepad to wordpress. I thought it would be a relatively difficult process (main concern was not to break permalinks), but it actually ended up being pretty simple. It's not quite complete, but I thought it would be worth blogging the steps of my migration here. It's not an exact step by step guide, but should help.
- Download the latest version of wordpress and follow the 5 minute install guide.
- Temporarily used an url of ww3.scalefree.info, and added an appropriate entry in my local hosts file to allow it to be resolved.
- Added a virtual host for www.scalefree.info in my apache config, and added ww3.scalefree.info as an alias.
- Exported content out of typepad (Manage | Import/Export) and saved file as import.txt
- The big problem was always going to be making sure that my typepad permalinks continue to function so that existing links from other blogs and search engines just continued to work. Luckily, there is a set of instructions for making wordpress use movable type permalinks on the wordpress codex.
- Set up a custom permalink structure (Options | Permalinks). However the custom structure you should use is
/%year%/%monthnum%/%postname%.html - Install the Underscore Permalinks plugin - you have to do this before importing your content
- Imported content into wordpress - (Import | Movable Type), which allows you to upload a local file. (I ran into some trouble here - had to change the wp-content directory permissions to 777 temporarily, after which the import worked just fine)
- Typepad truncates post titles in the URL at 15 chars. So, we have to do the same in the imported wordpress content. Run this SQL:
UPDATE wp_posts SET post_name=SUBSTRING(post_name,1,15) - If you have some long titles that are common - as I did when I started off 5 posts with Blogging 4 Business..., then you'll have to manually add the _1, _2, _3... to the post_name field for each of those entries
- Installed wordpress feedburner plugin, and then updated the feed details in feedburner.
- Added a nice theme.
- Tested, and when everything looked fine repointed my dns and waited. I have control of my domain - www.scalefree.info (using godaddy), so repointing it is simple
- Hey presto - new blog, and no links seem to be broken.
- Added permanent redirects for old feeds - in .htaccess add the following lines
Redirect permanent /index.rdf [feedlocation] Redirect permanent /atom.xml [feedlocation] Redirect permanent /rss.xml [feedlocation] - Great - mod_rewrite really is useful. Typepad format monthly and category pages are now redirected to wordpress using the following .htaccess mod_rewrite magic:
# monthly archive: domain/2005/12/index.html -> domain/2005/12/ RewriteRule ^(.*)([0-9]{4})/([0-9]{2})/index.html $1/$2/$3/ [R=permanent,L] #category archive: domain/metrics_and_roi/index.html -> domain/category/metrics_and_roi/ RewriteRule ^(.*)([a-zA-z]*)/index.html /category/$1/ [R=permanent,L]
- Add equivalents for the legacy feeds from the old site
RSS 1.0 feed: http://www.scalefree.info/index.rdfRSS 2.0 feed: http://www.scalefree.info/rss.xmlAtom feed: http://www.scalefree.info/atom.xmlComments feed: http://feeds.feedburner.com/ScalefreeCommentsGet monthly archives working - typepad used format of /year/month/index.html, but wordpress doesn't have the final index.html. There's a plugin somewhere that forces this.- Add blogroll
- Tinker

Site looks great. Glad you were much more successful moving your site than I was with mine back in December.
-Dubs
Thanks Dubs - it really wasn't as hard as I thought it was going to be - a nice brain-stretcher to get my mind off being sick and back to doing stuff !
Just curious, was there anything that motivated your move? There's a couple dozen features that TypePad has which you won't have access to... I'd love to understand more about how we can keep improving TypePad to better meet people's expectations.
Anil,
I'm curious as to what I'm missing out on ! But I just got tired of being on someone else's platform and wanted more control, and over the last year or so I feel that wordpress has moved ahead of movable type. Some of the new stuff you're doing with typepad (widgets etc) is not very interesting to me as they can't be combined with advanced templates
Lack of decent stats in typepad is also an issue (something I talked to Alistair about when he was working for SA in London).
I'll add more when I think about it.