Apache has a very annoying tendancy to replace double slashes in the URL with a single.
Example:
Request URL: http://example.com/myscript.php/foo//bar
When I look at the
$_SERVER['PATH_INFO'];
var, the path info will show up as:
foo/bar
instead of
foo//bar
Does anyone know of a fix for this? I believe this is ingrained somewhere in apache’s functionality… I don’t know if there’s some kind of an apache flag that can be tweaked to disable this behavior.
It’s part of RFC standard for resolve URIs so you can’t change that.
Even probably your browser normalize the URI before send the request to the remote server.