redirect php
snippet in php

php redirect

user6081

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

php header location

user7654

<?php
// This will just redirect you to example.com
header("Location: https://example.com");  
?>

redirect php

user7524

< ?php header("Location: http://www.redirect.to.url.com/"); ?>

header location in php

user6846

<?php
// This will redirect  to google.com
$url = "https://google.com";
header("Location: $url");  
?>

php redirect to url

user9992

header("Location: http://example.com/myOtherPage.php");
die();

header location in php

user641

<?php
/*
	This will redirect  to facebook.com
*/
$url = "https://facebook.com.com";
header("Location: $url");  
exit;
?>