Skip to content
Skip to content
← All HTTP Headers
Response

Location

Specifies the URL to redirect the client to, used with 3xx redirect status codes.

Syntax

Location: <url>

Example

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

Description

Location indicates the redirect URL. Used with 3xx status codes (301, 302, 307) and 201 Created responses.

The value can be absolute or relative. For redirects, the browser navigates automatically.

Important for SEO: 301 redirects pass link equity, 302 do not. Use absolute URLs for maximum compatibility.

Check if your website sends this header correctly

Check your headers →

Related Articles

Related Headers