redirect to site php
snippet in php

php redirect

user3598

//PHP redirect
header("Location: https://www.codegrepper.com/my-redirect-page.php");
die();

php redirect to page

user9819

header("Location: /");
exit();

redirect to site php

user7036

//Write this in the Controller when working on Laravel.

header('Location: http://www.example.com/');
exit;