php redirect to url
snippet in php

php redirect

user7168

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

redirect php

user125

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

php redirect to url

user3649

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

header location in php

user5559

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

php redirect to page

user5634

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

php redirect

user665

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