Added auto-reroute after index.php