diff --git a/Source/Config/config.php b/Source/Config/config.php index 085223a..4280dd9 100644 --- a/Source/Config/config.php +++ b/Source/Config/config.php @@ -16,12 +16,12 @@ $views['error'] = 'Views/HTML/error.php'; $_SERVER['BASE_URI'] = ''; $protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http"; -$url = $protocol . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; -echo $url; - -echo "URL : ".$url." "; +$host = $_SERVER['HTTP_HOST']; +$uri = $_SERVER['REQUEST_URI']; +$url = $protocol . "://" . $host . $uri; +echo "URL : ".$url." \n "; $newUrl=parse_url($url, PHP_URL_PATH); -echo "NewURL : ".$newUrl." "; +echo "NewURL : ".$newUrl." \n "; $container_name = basename($newUrl); echo "Container : ".$container_name;