Added rewrite to index.php