Extension:ShortUrl

SpecialUrl is a special page extension that helps create shortened URLs for wiki pages, using their base36 encoded IDs. Adds a 'Short URL' link to the Toolbox. Primarily developed for use in the Indic Language Wikipedias.

Installation

 * 1) Download a snapshot and extract it to your extensions directory.
 * 2) Add the following to the bottom of your LocalSettings.php
 * 3) (Optional) Run populateShortUrlTable.php maintenance script. Creates short URLs for all existing articles.
 * 4) Redirects are available under Special:ShortUrl/.
 * 5) Set $wgShortUrlPrefix to whatever prefix you want before the shortID in the toolbox. Example: '/wiki/Special:ShortUrl/'. Needs special care if using with mod_rewrite.

Caveats

 * You need some amount of js on the clientside to actually generate the short url and put it up somewhere. Check out ta wikipedia for an example by en:User:Logicwiki

May 27, 2011

 * Modified to include Wikitech list comments on the same, pending code review.

April 12, 2011

 * Add support for arbitrary prefixes in toolbox (Support for mod_rewrite based shortening)
 * Add 'Short URL' link to Toolbox.

April 1, 2011

 * Initial Release