Custom handling for empty request URI values
This commit is contained in:
parent
5a5c4333be
commit
307d44b6af
1 changed files with 5 additions and 0 deletions
|
@ -25,6 +25,11 @@ $domain = $_SERVER['HTTP_HOST'] ?? 'localhost';
|
|||
|
||||
$request_uri = dirname($_SERVER['SCRIPT_NAME']);
|
||||
|
||||
if ($request_uri === '.')
|
||||
{
|
||||
$request_uri = '';
|
||||
}
|
||||
|
||||
$config['base_url'] = trim($protocol . $domain . $request_uri, '/');
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue