A while back I migrated my blog to Jekyll and GitHub Pages
. I worked hard to preserve my existing URLs
But the process wasn't perfect. My old blog engine was a bit forgiving about URLs. As long as the URL "slug" was correct, the URL could have any date in it. So there happened to be quite a few non-canonical URLs out in the wild.
So what I did was create a 404 page
that had a link to log an issue against my blog. GitHub Pages will serve up this page for any file not found errors. Here's
an example of the rendered 404 page
And the 404 issues started to roll in. Great! So what do I do with those issues now? How do I fix them?
GitHub Pages fortunately supports the Jekyll Redirect From plugin
. For a guide on how to set it up on your GitHub Pages site, check out this GitHub Pages help documentation
Here's an example of my first attempt at front-matter for a blog post on my blog that contains a redirect
title: "Localizing ASP.NET MVC Validation"
date: 2009-12-07 -0800
categories: [aspnetmvc localization validation]
As you can see, my old...(Read whole news on source site)