create website redirect php

PHP
header("Location: http://example.com");
die();header("Location: http://example.com/redirect_page.php");
die(); //Force the script to quit, or you would raise an error...
Source

Also in PHP: