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
- → Browser
GET
requests url - ← Server responds with
301 - Moved Permanently
response along with Response Header:Location: www.example.com/new-location
- → Browser
GET
requests new location. - ← Server responds with response body and status code of
200 - Ok