This commit is contained in:
2025-12-24 23:46:02 +01:00
parent e4e93b05f4
commit 079916fb2f

View File

@@ -25,10 +25,15 @@ if ($uriPath === '' || $uriPath === 'index' || $uriPath === 'index.php') {
}
// 2) Datei
elseif (is_file($base . '.php')) {
echo $base;
$target = $base . '.php';
}
// 3) 404
elseif (is_file($base)) {
$target = $base;
}
// 3) 404
else {
http_response_code(404);
$target = __DIR__ . '/page/404.php';