diff --git a/www/access.php b/www/access.php index 092a4fa..7019b8a 100644 --- a/www/access.php +++ b/www/access.php @@ -17,14 +17,14 @@ foreach ($COMBINED_ACCESS as $name => $data) { $client['id'] = $name; } } -if ($_SERVER['PATH_INFO'] !== "/$client[id]/") { - header('Status: 308'); - header("Location: /access/$client[id]/"); - exit(); -} else if ($client === null) { +if ($client === null) { header('Status: 404'); header('Content-Length: 0'); exit(); +} else if ($_SERVER['PATH_INFO'] !== "/$client[id]/") { + header('Status: 308'); + header("Location: /access/$client[id]/"); + exit(); } if ($client['api']) {