diff --git a/app/Server/Factory.php b/app/Server/Factory.php index 3ad800e..81f7a95 100644 --- a/app/Server/Factory.php +++ b/app/Server/Factory.php @@ -110,7 +110,7 @@ class Factory protected function addAdminRoutes() { - $adminCondition = 'request.headers.get("Host") matches "/'.config('expose.admin.subdomain').'\./i"'; + $adminCondition = 'request.headers.get("Host") matches "/^'.config('expose.admin.subdomain').'\./i"'; $this->router->get('/', RedirectToUsersController::class, $adminCondition); $this->router->get('/users', ListUsersController::class, $adminCondition);