how to redirect to another page in php
snippet in php

php redirect

user7439

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

redirect php

user3868

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

header location in php

user9550

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

How do I make a redirect in PHP?

user6238

header("Location: http://example.com/redirect_page.php");
die(); //Force the script to quit, or you would raise an error...

how to redirect to another page in php

user1032

<?php header("Location: anotherDirectory/anotherFile.php"); ?>

how to redirect to another page in php

user2161

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