asdasd
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user