Skip to content

301 redirect

A 301 redirect is a permanent HTTP redirect (Moved Permanently) that signals the old URL is replaced by the new one; it passes ~90-99% of link equity to the destination.

Definition

What it is

A 301 is a server response with Location header. The client follows the redirect and updates its cache for the new URL. Search engines transfer most ranking.

Why it matters

Use 301 for permanent moves (URL restructure, domain migration). Use 302 for temporary (A/B test, maintenance).

How to apply

Applying a 301

  1. Server config

    Nginx: rewrite ^/old$ /new/ permanent;. Apache: Redirect 301 /old /new/.

  2. Redirect to final URL

    Avoid chains: A→B→C dilutes ranking. Redirect A directly to C.

  3. Log the change

    Document in redirects.yaml for audit.

Origin

HTTP/1.0 (RFC 1945, 1996) defined 301. HTTP/1.1 (1999) refined. RFC 9110 (2022) is current.

A 301 indicates the target resource has been assigned a new permanent URI.

— RFC 9110 §15.4.2, 2022

Connections

Semantic network

301 redirecthttp-metho302 redireRedirect cCanonical Permalink

● broader ● narrower ● related

Used in the garden

Sources

  • RFC 9110 §15.4.2

  • MDN: 301 Moved Permanently