diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 110d496c4a7c92edf32e9356f7247a4a5b840708..1353daa77ed20d4700dad6980c0ae85b8bad1a77 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -116,7 +116,7 @@ function conf_path() { } $confdir = 'sites'; - $uri = explode('/', $_SERVER['PHP_SELF']); + $uri = explode('/', $_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_FILENAME']); $server = explode('.', implode('.', array_reverse(explode(':', rtrim($_SERVER['HTTP_HOST'], '.'))))); for ($i = count($uri) - 1; $i > 0; $i--) { for ($j = count($server); $j > 0; $j--) {