rev=canonical bookmarklet and designing shorter URLs

Simon Willison has an awesome post up talking about his rev=canonical bookmarklet, and designing shorter URLs by casting unique IDs to base 62 (We’re using the same trick on to avoid having to maintain a look up database, though we’re using base 58). He details designing his new short URLs, deploying them on Django, and built a handly bookmarklet.

The nice thing about this approach is that it makes it trivial to add custom URL shortening domains to other projects—a quick view function and a few lines of nginx configuration are all that is needed.

Bookmarklet: Shorten (drag to your browser toolbar)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s