In short, the functionality is built in 3 different parts.

  • A mod_rewrite rule in your website (root) .htaccess file.
  • A small helper PHP script (short.php).
  • A Droplet that rewrites all "internal" links to pages on your website.

Next to this there is a nice "trick" to overcome problems with modules that use the $_SERVER['PHP_SELF'] value.

The functionality is tested succesfully on my production webserver as well as on a WAMP testserver.

On the rest of this website I will explain what it is what the three parts do.

First I want to explain a bit about the mod_rewrite rule. Next the PHP Script is explained, and finally the Droplet code is described.