URL Shortener

URL Shortener maps a long web address onto a short code and redirects visitors from the short code back to the long address. URL Shortener stores the pair, returns a short URL whose path is the code, and issues an HTTP redirect when that path is requested. URL Shortener can count clicks on the code and can set an expiry after which the redirect stops. URL Shortener leaves the destination page unchanged. The short code is an alias, and the destination remains the original URL. A custom alias replaces the random code when that alias remains unused on the host.