You have two options then. Either you skip using PATH_INFO by adapting the rewriterule to give you the path as GET parameter:
RewriteRule ^(.*)$ index.php?path=$1 [L,QSA]
Thus use $_GET["path"]
now.
Or switch from using $_SERVER["PATH_INFO"]
and get the origianl incoming path from $_SERVER["REQUEST_URI"]
. Sometimes there are also alternative environment vars, like REDIRECT_PATH_INFO
, check print_r($_SERVER);
.