2buntu / 2buntu-blog

Source code for the 2buntu blog.
http://2buntu.com
Apache License 2.0
15 stars 11 forks source link

Implement canonical URLs #15

Closed nathan-osman closed 10 years ago

nathan-osman commented 10 years ago

Currently, if an article has the following URL:

http://2buntu.com/articles/1234/article-title-goes-here

...then the following URLs are also valid for the article:

http://2buntu.com/articles/1234/zzzzzzzzzzzzzzz
http://2buntu.com/articles/1234/gfd-sdgsfgd-sdfgdsf-dsfgsdgf

Obviously this is not what we want since this will hurt SEO when users copy-and-paste these nonsense URLs into social media. Instead, whenever a user enters one of these URLs, they should instantly be redirected to the canonical URL.

This is currently implemented in the old blog engine.