fix redirect.php