diff --git a/app/Config/App.php b/app/Config/App.php index fdd8e8d..1bc5e51 100644 --- a/app/Config/App.php +++ b/app/Config/App.php @@ -40,7 +40,7 @@ class App extends BaseConfig * something else. If you have configured your web server to remove this file * from your site URIs, set this variable to an empty string. */ - public string $indexPage = 'index.php'; + public string $indexPage = ''; /** * -------------------------------------------------------------------------- diff --git a/app/Config/Routes.php b/app/Config/Routes.php index 1c1ac80..69aa614 100644 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -5,7 +5,7 @@ use CodeIgniter\Router\RouteCollection; /** * @var RouteCollection $routes */ -$routes->get('/', 'Home::index'); +$routes->get('/', static fn () => redirect()->to('admin/login')); $routes->group('admin', ['namespace' => 'App\Controllers\Admin'], static function ($routes) { $routes->get('login', 'Auth::login');