Function for parse the url address