diff --git a/route.php b/route.php index 0f2aadc..3928b6a 100644 --- a/route.php +++ b/route.php @@ -209,7 +209,8 @@ class route { // If there is a directory before the index.php file, must remove the // directory structure - if (dirname ($_SERVER["SCRIPT_NAME"]) !== "/") + if (dirname ($_SERVER["SCRIPT_NAME"]) !== "/" && + dirname ($_SERVER["SCRIPT_NAME"]) !== ".") $url .= substr ($_SERVER["REQUEST_URI"], 1+strlen (dirname ($_SERVER["SCRIPT_NAME"]))); else