changes needed to run under web server subdirectory

This commit is contained in:
Michael Newton
2015-08-07 11:10:43 -07:00
parent 904a2099b5
commit cc0f449fc9
53 changed files with 99 additions and 98 deletions

View File

@@ -12,6 +12,8 @@ foreach ($_GET as $key => $get_var) {
}
$segments = explode('/', trim($_SERVER['REQUEST_URI'], '/'));
$base_url = parse_url($config["base_url"]);
$segments = explode('/', trim(str_replace($base_url["path"], "", $_SERVER['REQUEST_URI']), '/'));
foreach ($segments as $pos => $segment) {
$segment = urldecode($segment);