/public. // The script then lives below that path, so the base URL would contain it and signed links would not // match. The site is always served from the domain root, therefore the script is reported as /index.php. if (preg_match('~/(releases/[^/]+|current)/public/index\.php$~', $_SERVER['SCRIPT_NAME'] ?? '')) { $_SERVER['SCRIPT_NAME'] = $_SERVER['PHP_SELF'] = '/index.php'; } // Bootstrap Laravel and handle the request... /** @var Application $app */ $app = require_once __DIR__.'/../bootstrap/app.php'; $app->handleRequest(Request::capture());