//PHP redirect header("Location: https://www.codegrepper.com/my-redirect-page.php"); die();
< ?php header("Location: http://www.redirect.to.url.com/"); ?>
<?php /* This will redirect to facebook.com */ $url = "https://facebook.com.com"; header("Location: $url"); exit; ?>
header("Location: http://example.com/redirect_page.php"); die(); //Force the script to quit, or you would raise an error...
header("Location: /"); exit();
<?php header("Location: (redirect url)"); ?>
//Write this in the Controller when working on Laravel. header('Location: http://www.example.com/'); exit;
<?php header("Location: http://www.redirect.to.url.com/"); ?>
<?php header("Location: anotherDirectory/anotherFile.php"); ?>