php redirect link code example
Example 1: php redirect
//PHP redirect
header("Location: https://www.codegrepper.com/my-redirect-page.php");
die();
Example 2: php redirect to url
header("Location: http://example.com/myOtherPage.php");
die();
Example 3: header location in php
/*
This will just redirect you to example.com
*/
<?php
$url = "https://example.com";
header("Location: $url");
exit;
?>
/* I hope it will help you. Namaste */