handleRequest($request); } else { $response = new RedirectResponse(str_replace('/web/index.php', '', $request->getBaseUrl())); } $response->send(); $kernel->terminate($request, $response);