Skip to content
This repository has been archived by the owner on Mar 20, 2018. It is now read-only.

Enforce canonical post URLs #13

Closed
hmans opened this issue Feb 18, 2012 · 0 comments
Closed

Enforce canonical post URLs #13

hmans opened this issue Feb 18, 2012 · 0 comments

Comments

@hmans
Copy link
Owner

hmans commented Feb 18, 2012

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.

@hmans hmans closed this as completed in 452548b Feb 18, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant