Non passargli $_SERVER['REQUEST_URI']e il nome file lo metti in $location