HTTP redirect
Definition
An HTTP redirect is a response with a 3xx status, such as 301, 302, 307 or 308, and a Location header naming the URL the client should fetch next.
In practice
Redirects move pages, force HTTPS, and power URL shorteners, where each short link is a key lookup that returns a redirect. 301 and 308 are permanent and may be cached by browsers indefinitely; 302 and 307 are temporary, so every click comes back to the server. 307 and 308 also guarantee the method and body are kept, which matters for POST.
Permanent redirects are hard to undo: a cached 301 keeps sending users to the old target even after you change or delete the link. Temporary redirects give accurate analytics and editable links at the cost of more traffic. Each hop also adds a round trip, so avoid chains, and never redirect to an unchecked user-supplied URL (open redirect).
Example
GET /aB3x9 returns 302 Found with Location: https://example.com/spring-sale; with 301 the browser would skip the shortener on later clicks and those clicks would not be counted.