diff --git a/app/main/Main.php b/app/main/Main.php index f1887c59bc82f6be008c93bb625bedc053af12c6..bb2002fdef577ce9d4f3ac07e1179415f6568f95 100644 --- a/app/main/Main.php +++ b/app/main/Main.php @@ -22,8 +22,7 @@ class Main { $controllerClass = $controllerPart . 'Controller'; $this->controller = new $controllerClass(); }else{ - require_once __DIR__ . '/../controllers/NotFoundController.php'; - $this->controller = new NotFoundController(); + header('Location: /book/'); } unset($url[0]);