Ciao,
al posto di $_SERVER['REQUEST_URI'] usa $_SERVER['PHP_SELF']