header location in php
snippet in php

php header location

user6563

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

header location in php

user600

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

header location in php

user1588

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

header location php

user2024

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

header location in php

user7062

/*
This will just redirect you to example.com
*/

<?php
$url = "https://example.com";
header("Location: $url");  
exit;
?>

/* I hope it will help you. Namaste */

php header

user8540


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