301
↪️ Redirection RFC 9110, Section 15.4.2

Moved Permanently

The requested resource has been permanently moved to a new URL.

Common Use

Used when a resource permanently changes its URL. SEO-critical: search engines update their indexes. Browsers cache this redirect indefinitely.

API Endpoint

https://codes.uncodigo.com/http/301

Example with curl

curl -i https://codes.uncodigo.com/http/301

Try It

GET /http/301
Click "Send Request" to see the response...

Example

Request

GET /old-page HTTP/1.1

Response

HTTP/1.1 301 Moved Permanently
Location: https://example.com/new-page

Related Headers

Location

The new permanent URI

Location: https://example.com/new-page