hmans/schreihals — Issue #13: Enforce canonical post URLs
Author: hmans
Created: 2012-02-18 11:57:25+00:00
State: open

We're already storing a history of slugs for each post, now we should make sure the client is accessing the post by its canonical URL. This allows the blog author to change a post's slug (and therefore URL) without breaking links.

Simply check if the requested slug equals the canonical slug; if not, do a 301 redirect to the post's URL.