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