permalink: Do not include 'index.php' in permalinks

This fixes #1.

Signed-off-by: Carl Helmertz <chelmertz@op5.com>