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