file de redirection php

PHP
header("Location: http://example.com/myOtherPage.php");
die();header("Location: http://example.com");
die();
Source

Also in PHP: