Convert long url to short url