php header location
snippet in php

php redirect

user4531

//PHP redirect
header("Location: https://www.codegrepper.com/my-redirect-page.php");
die();

php header location

user3507

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

header location in php

user6060

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

header location in php

user7813

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

header php location

user5514

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

php header redirect

user4471

< ?php header("Location: http://www.redirect.to.url.com/"); ?>