As mentioned, I’m moving my blog to octopress. I got tired of php, php-cgi, wordpress, security holes, constant updates that broke random plugins, 5 second page loads, fragile caching plugins, and all the various nonsense that wordpress brings to the table.
An aside: php-cgi
is so fragile and crashes so often I ran a screen session as root that just attempted to restart it every 5 seconds (attached below for any poor souls stuck using this tech.)
1 2 |
|
For googlers who want to move from wordpress to octopress, here’s how I moved 70-odd posts with minimal pain.
1 – Get thomasf’s excellent python script (accurately named exitwp) that converts wordpress posts to octopress posts. This will create one octopress post per wordpress post in the source
directory.
2 – I simultaneously moved urls from blog.earlh.com
to earlh.com/blog
so I needed to 301 all the old posts. I did that by getting
this awesome wordpress post exporter script contributed by Mike Schinkel. I curled that to create a list of urls to forward, then built a tsv of pairs of old url\tnewurl
. Then the below awk script will print nginx forward rules:
1
|
|
The rules look like:
1 2 3 4 |
|
Add them to your site nginx.conf
file inside the server
configuration block.
I’ll update with solutions for better image embedding.