diff --git a/public/index.php b/public/index.php index 50804e7..fee55d1 100644 --- a/public/index.php +++ b/public/index.php @@ -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