how to redirect a website in php code example
Example 1: header location in php
<?php
/*
This will redirect to facebook.com
*/
$url = "https://facebook.com.com";
header("Location: $url");
exit;
?>
Example 2: How do I make a redirect in PHP?
header("Location: http://example.com/redirect_page.php");
die(); //Force the script to quit, or you would raise an error...