How do short links work?

A URL shortener works because of a Web server function called a “Redirect” (URL redirection). … When you enter a URL a browser, this actually sends an HTTP command to the Web server directing it to fetch and transmit the requested Web page.

For More Information Please Refer: