best way to redirect with php code example
Example 1: php redirect to url
header("Location: http://example.com/myOtherPage.php");
die();
Example 2: php redirect
header("Location: http://example.com");
die();
header("Location: http://example.com/myOtherPage.php");
die();
header("Location: http://example.com");
die();