diff --git a/html/.htaccess b/html/.htaccess
index 3dabb89df7..8f20a5ae90 100644
--- a/html/.htaccess
+++ b/html/.htaccess
@@ -4,3 +4,6 @@ RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} !\.(js|ico|txt|gif|jpg|png|css|php)
RewriteRule ^(.*)$ index.php/$1/
+
+SetOutputFilter INCLUDES
+AcceptPathInfo On
diff --git a/html/index.php b/html/index.php
index 45b419a453..b5c2d15459 100755
--- a/html/index.php
+++ b/html/index.php
@@ -5,6 +5,8 @@ ob_start();
ini_set('allow_url_fopen', 0);
ini_set('display_errors', 0);
+#$_SERVER['PATH_INFO'] = (isset($_SERVER['PATH_INFO']) ? $_SERVER['PATH_INFO'] : $_SERVER['ORIG_PATH_INFO']);
+
if (strpos($_SERVER['PATH_INFO'], "debug"))
{
$debug = "1";