PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information

Derick Rethans' Blog: Short URLs

Note: This article was originally published at PHPDeveloper on 23 February 2011.
PHPDeveloper

Derick Rethans has shared a method he's created for making short, descriptive URLs with the help of his translit PHP extension that translates non-latin characters into latin ones.

The URLs for my articles are automatically generated from the title. There is a little function that uses translit's transliterate() function to ASCII-ify the titles. [...] However, [this] is hardly a short URL. What we want is something short and descriptive. First of all, I thought it would work to generate short URLs automatically.

In hindsight, though, he decided it would just be better to come up with his own short URLs but he still wanted a way to use them. Registering a short domain helped and, along with some tags, made it easier for the right information to be automatically found.