diff --git a/html/index.php b/html/index.php
index 3129f70aae..61920e41cf 100755
--- a/html/index.php
+++ b/html/index.php
@@ -1,15 +1,11 @@
$get_var) {
}
}
-$segments = explode('/', trim($_SERVER['REQUEST_URI'], '/'));
+$segments = explode('/', trim($_SERVER['PATH_INFO'], '/'));
foreach($segments as $pos => $segment) {
$segment = urldecode($segment);
if($pos == "0")