header redirect code example
Example 1: php redirect
header("Location: http://example.com/myOtherPage.php");
die();
Example 2: header location php
<?php
// This will just redirect you to example.com
$url = "https://example.com";
header("Location: $url");
?>
Example 3: header php location
header('Location: http://www.example.com/');