diff --git a/route.php b/route.php index 80cf0e5..937e519 100644 --- a/route.php +++ b/route.php @@ -225,7 +225,7 @@ class route // FIXME : Why do I add this slash ? I can not redirect the word to word/ // if (substr ($requestURL, -1) !== "/") // $requestURL .= "/"; - if ($destURL[0] === "/") + if (substr ($destURL, 0, 1) === "/") { // Absolute : return to project base $destURL = $baseURL.substr ($destURL, 1);