php header redirect
snippet in php

php header location

user3450

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

redirect php

user6709

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

header location in php

user1309

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

header location in php

user8631

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

php redirect

user5584

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

php header redirect

user5239

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