Custom handling for empty request URI values

This commit is contained in:
Alex Tselegidis 2023-07-29 12:36:12 +02:00
parent 5a5c4333be
commit 307d44b6af

View file

@ -25,6 +25,11 @@ $domain = $_SERVER['HTTP_HOST'] ?? 'localhost';
$request_uri = dirname($_SERVER['SCRIPT_NAME']); $request_uri = dirname($_SERVER['SCRIPT_NAME']);
if ($request_uri === '.')
{
$request_uri = '';
}
$config['base_url'] = trim($protocol . $domain . $request_uri, '/'); $config['base_url'] = trim($protocol . $domain . $request_uri, '/');
/* /*