Gracias por la ayuda, te cuento que ya funcionó, pero tuve que hacer un cambio en HTTP_HOST y poner SERVER en lugar de ENV.
Aquí dejo el código por si le sirve a alguien
Cita: <?php
$url = "http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];
echo $url;
?>