Do url shortening services shorten the id or directly the url?
- by Tatu Meriläinen
Assuming the urls are saved to a database where they each have id and the url saved. For example a url www.example.com (let's say with id 1000) would possibly be shortened to www.url.com/c1hd5 etc.
Is the url www.example.com shortened to c1hd5 with base64 or similar or are the ids shortened?
The 566 id could be shortened like this: 1 = 1, 2 = 2,…