Forum Moderators: open
http://www.mydomain.com/messages.php if ($logged_in != '1') {
Header("Location: /login.php");
die;
} if ($logged_in != '1') {
Header('HTTP/1.0 401 Unauthorized');
Header("Location: /login.php");
die;
} header('HTTP/1.1 302 Found');
header("Location: http://www.example.com/login.php"); The (Location response-header) field value consists of a single absolute URI.