Prova a stampare il phpinfo() e guarda al fondo nelle PHP variables, dovresti vedere il _SERVER["REQUEST_URI"] .....