header location php
snippet in php

php header location

user5803

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

header location in php

user9811

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

header location in php

user7943

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

header php location

user1263

header('Location: http://www.example.com/');

header location php

user3265

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

header php

user847


<html>
<?php
/* This will give an error. Note the output
 * above, which is before the header() call */
header('Location: http://www.example.com/');
exit;
?>