Answers for "how to redirect a website in php"

PHP
2

header location in php

<?php
/*
	This will redirect  to facebook.com
*/
$url = "https://facebook.com.com";
header("Location: $url");  
exit;
?>
Posted by: Guest on July-17-2020
3

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...
Posted by: Guest on May-18-2020

Code answers related to "how to redirect a website in php"

Browse Popular Code Answers by Language