PHP va à une autre page
<?php header("Location: anotherDirectory/anotherFile.php"); ?>
Tender Tarantula
<?php header("Location: anotherDirectory/anotherFile.php"); ?>
<?php
/*
This will redirect to facebook.com
*/
$url = "https://facebook.com.com";
header("Location: $url");
exit;
?>
if (/*Condition to redirect*/){
//You need to redirect
header("Location: http://www.yourwebsite.com/user.php"); /* Redirect browser */
exit();
}
else{
// do some
}
<?php header("Location: $url"); ?>
header("Location: http://example.com/redirect_page.php");
die(); //Force the script to quit, or you would raise an error...
<?php header ("location: http://domain.com/"); ?>