a rev="canonical" based URL shortener (as a gae app)
Switch branches/tags
Nothing to show
Failed to load latest commit information.
README add link to blog Apr 7, 2009
app.yaml initial commit Apr 6, 2009
index.html tweak wording Apr 8, 2009
index.yaml initial commit Apr 6, 2009
main.py you can paint the bike shed any color you want Apr 15, 2009



RevCanonical is url shortening with a twist. Instead of creating its own super short versions of links, it checks to see if the link owner has published a shortened version of the given page using HTML link element. If not, we just return the original URL. And you should bug the link owner about providing a better alternative.


URL shorteners are as problematic as they are useful. They create SPOFs, that over any meaningful timeframe are guaranteed to create data loss, eroding the historical record. And then there are the privacy concerns. And the usability ones. See also on url shorteners and Solving the TinyUrl centralization problem.


RevCanonical searches the referenced resource for:

    * <link rev="canonical" href="..."> (i.e. "I am the canonical URL of that page over there")
    * <link rel="alternate shorter" href="..."> (or truth be told any link rel including the string "alternate short*")

There is also an API version, which returns just the resulting URL.

See also the blog: http://revcanonical.wordpress.com/

!! This code is on github, so it's implicitly somewhat open. Unfortunately it's rediculously unclear what terms you can use/modify this under.  An explicit license and COPYING file should be applied.