Replaced explode for parse_url function to split an url