Update: index.php

Added rtim() to remove any '/' from $_REQUEST['r']