Ver originalif(isset($_SERVER['REQUEST_URI'])) { echo 'OK';} // o tambien if(!empty($_SERVER['REQUEST_URI'])) { echo 'OK';}