redirect to url with header + php code example
Example 1: php redirect
//PHP redirect
header("Location: https://www.codegrepper.com/my-redirect-page.php");
die();
Example 2: header location php
<?php
// This will just redirect you to example.com
$url = "https://example.com";
header("Location: $url");
?>