Ver original<?php$url="http://midominio.net/";if (ereg("/$", $url)) { echo substr($url, 0, -1);} else { echo $url;}?>