Glossary

What Is Location Header?

The Location header is an HTTP response header that tells the browser which URL to navigate to during a redirect. It's included in every 3xx redirect response and is the mechanism that makes server-side redirects work.

Why It Matters

The Location header is the technical mechanism behind every server-side redirect. When Domain Forward redirects old-domain.com to new-domain.com, it’s sending:

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

Without this header, the 301 status code is meaningless — the browser knows it should redirect but doesn’t know where to go.

How It Works

The Location header appears in HTTP responses with 3xx status codes:

HTTP/1.1 301 Moved Permanently
Location: https://new-domain.com/page
Content-Length: 0

The browser:

  1. Reads the status code (301 — permanent redirect)
  2. Reads the Location header (the destination URL)
  3. Automatically navigates to the destination
  4. The entire process is invisible to the visitor

Location Header in Different Redirects

Status CodeLocation Header ContainsBrowser Behavior
301New permanent URLNavigate + cache
302Temporary URLNavigate, don’t cache
307Temporary URLNavigate, preserve method
308New permanent URLNavigate, preserve method, cache

How Domain Forward Handles This

Domain Forward always sends an absolute URL in the Location header, including the correct protocol (https://). If path forwarding is enabled, the original path is appended to the destination URL in the header: Location: https://new-domain.com/original/path.

All destination URLs are explicitly configured — Domain Forward never produces open redirects where the destination could be manipulated by an attacker.

Related Terms

Related Features

Frequently
asked questions

It's a single line in the HTTP response: Location: https://new-domain.com/page. The browser reads this header and automatically navigates to the specified URL.

Still Confused? Try It Free.

Set up your first domain forward in under 5 minutes. Free plan includes 5 domains.