php code to ridirect to currently working page 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();