<?phpheader("Location:

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

Also in PHP: