php redirect to another page after echo code example Example: php redirect to page header("Location: /"); exit();