echo redirect set header code example
Example 1: php redirect
header("Location: http://example.com");
die();
Example 2: php redirect
header("Location: http://example.com/myOtherPage.php");
die();
header("Location: http://example.com");
die();
header("Location: http://example.com/myOtherPage.php");
die();