Use REQUEST_URI instead of PATH_INFO.