Adjusted redirect in index.php