redirecting to html page from php code example
Example 1: php redirect to url
header("Location: http://example.com/myOtherPage.php");
die();
Example 2: php redirect to page
header("Location: /");
exit();
header("Location: http://example.com/myOtherPage.php");
die();
header("Location: /");
exit();