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