//PHP redirect header("Location: https://www.codegrepper.com/my-redirect-page.php"); die();
< ?php header("Location: http://www.redirect.to.url.com/"); ?>
header("Location: http://example.com/myOtherPage.php"); die();
header("Location: http://example.com"); die();
header("Location: /"); exit();
<?php header("Location: (redirect url)"); ?>
//Write this in the Controller when working on Laravel. header('Location: http://www.example.com/'); exit;