redirect in php
snippet in php

php redirect

user1465

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

php header location

user8966

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

redirect php

user2668

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

php redirect to url

user1329

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

header location in php

user2468

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

redirect in php

user2824

header("location: THE LOCATION"); //"THE LOCATION", put in a URL or directory to redirect to. For example, header("location: https://google.com/"); or header("location: ../../images/dog/");