Software over the rainbow

desearch and revelopment

Wordpress to Octopress, Subdomain and Redirect

I’ve started using octopress for this blog.

After using middleman for a couple of projects, I prefer to use static site generators whenever possible: They are faster, lend themselves nicely to version control (this one is on github), are managed with plain text, and, in this case, use ruby.

I’ve also moved to a subdomain from a regular directory

To avoid broken link blues, I’ve set up redirects so the old wordpress permalink urls map to the new subdomain.

Here’s the .htaccess in my web root.

RewriteEngine on
RewriteBase /

RewriteCond %{HTTP_HOST} !^blog\.jesusgollonet\.com$ [NC]
RewriteRule ^blog/(.*)$$1 [L,NC,R=301]

It sends to the subdomain all requests coming to blog/, appending any additional ‘folders’. So leads to

Comments are always welcome @jesusgollonet