<?php
// Redirect to login page
try {
    header('Location: login.php');
    exit;
} catch (Exception $e) {
    // Fallback if header fails
    echo '<script>window.location.href = "login.php";</script>';
    echo '<meta http-equiv="refresh" content="0;url=login.php">';
    echo '<p>Redirecting to login page... <a href="login.php">Click here if not redirected automatically</a></p>';
}
?>