Back up and running

Published
2014-05-16
Tagged

And we’re back in business! It looks like the RSS feeds all sputtered a bit upon re-generation/syncing, but from this point on everything should continue to smoothly operate according to plan.

I’ve already advanced the site, with a staging server sitting on S3 so I can preview changes as they would appear online, and used it to significantly improve my 404 page. Now visitors from previous links will be automatically shuttled to the correct page via the magic of javascript, because S3 doesn’t allow you to have fun with .htaccess files:

1
$(function(){
2
  var path = location.pathname;
3
  if (m = path.match(/^\/blog\/(?:\d{4}-\d{2}-\d{2}-)?([a-zA-Z0-9-]+)(?:\.html)?\/??$/)) {
4
    if (m[1] != path) { window.location = "/blog/"+m[1]; }
5
  }
6
});

Expect more posts in the near future on other work I’ve done bending nanoc to my will.