Redirects - patrickcole/learning GitHub Wiki

Redirects

HTTP Request Sequences

All communication is done via the HTTP protocol. Depending on what version the server has implemented it may be HTTP/1.1, HTTP/2 or HTTP/3.

301 - Moved Permanently

  1. → Browser GET requests url
  2. ← Server responds with 301 - Moved Permanently response along with Response Header: Location: www.example.com/new-location
  3. → Browser GET requests new location.
  4. ← Server responds with response body and status code of 200 - Ok