redirect to right places in index.php