21 July 2010
My Own URL Shortener
I’m a big fan of the domai.nr service which helps with the discovery of domain name variations creatively using ccTLDs. If you’re into wasting money on random domains, you can spend hours trying different words and phrases to see which crazy variants are still available for purchase. Ignoring the standard
.org TLDs that are already taken, here’s what the service suggests as possible valid domains for my surname:
.sc domains cost a whopping US$125 per year, I’d ruled those out a long time ago. But when I heard
.co domains were being opened up to global registrations, I happily handed over $29.99 to Go Daddy to reserve the domain, hoping nobody else would claim it during the sunrise and landrush periods.
After over four months of waiting, I finally got confirmation yesterday that the rus.co domain was mine, joining the likes of t.co (Twitter), fb.me (Facebook) and goo.gl (Google, obviously).
My first shortened URL is rus.co/e which is currently serving a 302 temporary redirect to ruscoe.net since I’ve not yet decided how to structure my shortened URLs. For example, should I always include the trailing
/e after the domain so that it looks more like my surname? Should I use a namespace for different URLs – e.g. something like
rus.co/eB/ for blog posts and
rus.co/eX/ for external links?
While I’m making my mind up about those details, I also need to decide which technology I want to use to power the URL shortener. I’ve considered services like bitly.Pro and awe.sm but think I’d prefer to have tighter control over things, so it looks like I’m going to be getting my hands dirty writing a custom solution...
Any tips or suggestions?
Labels: development, personal, ruscoe.net
One thing to keep in mind when writing your own is that it's probably going to need a GET-based API if you want to use it for things like bookmarklets or in applications that let you specify custom URL shorteners.