Here at Nizomk Towers, we have been following, with keen interest, the conversations flying around teh internets about the perils of URL-shortening services, such as TinyURL et al. Apparently, with both the number of available URL-shortening services growing, along with the reliance on them, what we have is a ticking time bomb, just waiting to explode in our faces! Yikes!
As one Dave Winer so wisely puts it:
We need to prepare for the day when N of the URL shorteners go out of business. When that happens a large part of the web will die. It will not be a good day.
There have been various dialogues about what can be done to tackle the issue, one proposal is to place the responsibilty of URL-shortening firmly in the hands of the owner of the long URL, who would dutifully publish a shortened version using a common and, one hopes, widely-adopted convention. This would then be revealed in much the same way that RSS feeds are currently announced and discovered.
One very clever ‘short URL auto-discovery’ solution, rev=canonical, has been proposed and implemented by Kellan Elliott-McCrea, it’s not much more than a proof-of-concept at this stage, and would need widespread adoption to truly solve the issue, but we like the idea so much we thought we’d show our support by quickly throwing together a WordPress implementation and releasing it into the wild!
The source code for our plugin, wp_rev_canonical.php, is hosted on our GitHub repository, and our own beloved website (yes, the one before your very eyes) is already serving blog post pages with included shortened URL goodness, so now any service that supports it can publish our super-cute shortened URLs wherever needed.
For example, the shortened URL for this blog post is http://www.nixonmcinnes.co.uk/?p=1017, this is broadcast by the following markup in the head section of this webpage:
<link rev="canonical" href="http://www.nixonmcinnes.co.uk/?p=1017" /> <link rel="alternate shorter" href="http://www.nixonmcinnes.co.uk/?p=1017" />
Ideally, of course, the shortened URLs would be served from an alternative, shorter, snappier, domain name, you might notice that ours sadly aren’t. We will be implementing this under our syllable-preserving pseudonym, nixmc.com, at the moment we are simply proving the concept, but hope to build on this in the not-too-distant future.
So, if your site is running WordPress, then you might like to download and install our plugin yourself, just grab it from GitHub, upload to your /wp-content/plugins/ folder, make sure your theme supports wp_head, enable it, and before you know it, Internet-friendly short URLs are your new best friend! Yay!