See "URI scheme" for more info about the different parts of a URI.
I'm not sure if you can use PATH_INFO to URL rewriting. I read this on: URL rewriting using PATH_INFO | Aspektas Blog
Contains any client-provided pathname information trailing the actual script filename but preceding the query string, if available. For instance, if the current script was accessed via the URL
, then $SERVER['PATHINFO'] would contain
Original version of 'PATH_INFO' before processed by PHP.