how to redirect from a php script code example Example: php redirect to url header("Location: http://example.com/myOtherPage.php"); die();