Update url.php

Added uri segment method to find url segment