diff --git a/laravel/request.php b/laravel/request.php index 72e916a3..12a44e73 100644 --- a/laravel/request.php +++ b/laravel/request.php @@ -66,9 +66,11 @@ public static function uri() $uri = substr($uri, strlen($base)); } - if (strpos($uri, '/index.php') === 0) + $index = '/'.Config::$items['application']['index']; + + if (trim($index) !== '' and strpos($uri, $index) === 0) { - $uri = substr($uri, 10); + $uri = substr($uri, strlen($index)); } // Request URIs to the root of the application will be returned