Skip to content

Commit

Permalink
Custom handling for empty request URI values
Browse files Browse the repository at this point in the history
  • Loading branch information
alextselegidis committed Jul 29, 2023
1 parent 5a5c433 commit 307d44b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions application/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@

$request_uri = dirname($_SERVER['SCRIPT_NAME']);

if ($request_uri === '.')
{
$request_uri = '';
}

$config['base_url'] = trim($protocol . $domain . $request_uri, '/');

/*
Expand Down

0 comments on commit 307d44b

Please sign in to comment.