Basic rewrites

As described here:
https://support.softcreatr.de/index.php?page=Thread&postID=269#post269