This commit is contained in:
2025-12-23 01:01:10 +01:00
parent caa82c74bc
commit 078de86502

View File

@@ -3,7 +3,8 @@ declare(strict_types=1);
// boot application (config, autoload, services)
require_once __DIR__ . '/../config/fileload.php';
echo "target existiert";
exit;
$uriPath = parse_url($_SERVER['REQUEST_URI'] ?? '/', PHP_URL_PATH) ?: '/';
$uriPath = preg_replace('~/{2,}~', '/', $uriPath);
$uriPath = trim($uriPath, '/');
@@ -26,8 +27,7 @@ if ($uriPath === '' || $uriPath === 'index' || $uriPath === 'index.php') {
}
// 2) Datei
elseif (is_file($base . '.php')) {
echo "target existiert";
exit;
$target = $base . '.php';
}
// 3) 404