A 301 redirect is an HTTP response code that permanently sends users and search engines from one URL to another. Unlike a 302 (temporary), a 301 tells Google to replace the old URL with the new one in its index and pass along the link authority the old page had earned.

HTTP status
301 Moved
Category
Technical SEO
Link equity passed
90–99%
Difficulty
Intermediate

If a page changes URL — for any reason — a 301 redirect is how you tell Google. Without one, you lose the ranking signals the old URL earned and any incoming links point to a dead page.

What is a 301 redirect?

A 301 redirect is one of Google's four permanent redirect signals (alongside HTTP 308 and JavaScript / meta-refresh with 0-second delay). When a server returns a 301, browsers automatically forward the visitor to the new URL, and search engines eventually swap the old URL out of the index in favour of the new one.

The name comes from the HTTP standard status codes:

  • 2xx codes — success (e.g. 200 OK)
  • 3xx codes — redirection (e.g. 301, 302, 304, 307, 308)
  • 4xx codes — client errors (e.g. 404, 410)
  • 5xx codes — server errors (e.g. 500, 503)
Google's stance

Google's John Mueller has confirmed that 301 redirects pass full PageRank and are the recommended way to move URLs. In 2024 Google updated its guidance to note that all "permanent" redirects (301, 308) are treated equivalently.

Why 301 redirects matter for SEO

Get a 301 right and you keep everything the old URL earned. Get it wrong and you can lose years of organic traffic overnight. There are three reasons every SEO cares about 301s:

  1. Link equity preservation. Every backlink pointing to the old URL keeps flowing PageRank to the new URL. Without a 301, all those links go to a 404 and their value evaporates.
  2. Ranking consolidation. Duplicate content (e.g. www vs non-www, http vs https) gets merged into one canonical URL that carries the full ranking strength.
  3. User experience. Visitors who bookmarked the old URL, clicked an old email link, or arrived from a stale Google result get taken to the working page instead of an error.

How a 301 redirect actually works

Every redirect happens in two steps: the request-response handshake, then the follow-up.

# A browser or crawler requests the old URL
GET /blog/old-post-name/ HTTP/1.1
Host: example.com

# The server responds with a 301 pointing to the new URL
HTTP/1.1 301 Moved Permanently
Location: https://example.com/blog/new-post-name/

# Browser automatically makes a fresh request to the new URL
GET /blog/new-post-name/ HTTP/1.1
Host: example.com

HTTP/1.1 200 OK

Server-side redirect (recommended)

The redirect is configured at the web-server level — Apache's .htaccess, Nginx's config, or the CDN edge. This is the fastest, most Google-friendly option because the redirect happens before any HTML loads.

Application-level redirect

Frameworks like Rails, Next.js, or WordPress can issue 301s from application code. Slightly slower than server-level, but easier to manage from a CMS.

301 vs other redirect types — what's the difference?

TypeMeaningSEO impactWhen to use
301 Permanent URL moved forever Full link equity + index replacement Every permanent URL change
302 FoundURL temporarily elsewhereOld URL stays in indexA/B tests, geo-routing, campaigns
307 TemporarySame as 302 but preserves POSTSame as 302Form submissions, temporary maintenance
308 PermanentSame as 301 but preserves POSTEquivalent to 301Modern APIs, permanent moves with POST bodies
Meta refreshHTML tag redirectPasses little to no equityAlmost never — avoid

Real 301 redirect examples

Here are the four situations where 301s show up most often, and the pattern each one uses.

1. Migrating http → https

# Nginx
server {
  listen 80;
  server_name example.com;
  return 301 https://$host$request_uri;
}

2. Merging www and non-www

# .htaccess (Apache)
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]

3. Retiring a URL slug

# Redirect old blog slug to new one
/blog/2024/seo-tips-old//blog/seo-tips/ (301 · Permanent)

4. Consolidating duplicates into one canonical

/product?id=42/products/blue-widget/ (301)
/blue-widget//products/blue-widget/ (301)
/products/blue-widget.html/products/blue-widget/ (301)

301 redirect vs. canonical URL — which one to use

Both signal "prefer this URL" to search engines. The difference is what happens to visitors.

✓ Use a 301 when

  • The old URL is truly gone / merged
  • You want a hard signal — no ambiguity
  • Visitors should never see the old page
  • You're consolidating equity permanently
  • URL slugs, domain moves, http → https

≈ Use a canonical when

  • Both URLs need to remain reachable
  • Filter / sort / tracking URL variants
  • Cross-domain syndicated content
  • Visitors need to see the "duplicate"
  • You're giving Google a preference hint

7 best practices for using 301 redirects

  1. Redirect to the exact final URL. Never chain 301 → 301 → 301. Every hop leaks equity. Point directly to the destination.
  2. Keep the redirect in place for 12+ months. Google may need multiple crawls to fully de-index the old URL and re-attribute signals.
  3. Match content, not just URL. Redirect an old page to a new page with equivalent content. Redirecting to your homepage instead is treated as a soft 404.
  4. Update internal links. Even with 301s live, fix the internal links to point directly to the new URL. Saves crawl budget and speeds up re-indexing.
  5. Use server-side redirects, not meta-refresh. Meta-refresh redirects pass little link equity and are slower for users.
  6. Test with a header checker. Verify the response is actually a 301 (not a 302) using curl, HTTPStatus.io, or Screaming Frog.
  7. Submit the change of address in Search Console. If you're moving domains, use the Change of Address tool to speed up Google's recognition.
Common mistake — redirecting bulk to the homepage

When retiring 100 pages, don't just 301 them all to the homepage. Google treats mass-homepage redirects as "soft 404s" and gives them no ranking value. Instead map each retired URL to the closest content match. If nothing matches, use a 410 Gone.

Common 301 mistakes to avoid

  • Redirect chains — 301 A → 301 B → 301 C. Google stops following after 5 hops.
  • Redirect loops — A → B → A. Nobody reaches the destination and Google flags the URL as inaccessible.
  • Using 302s for permanent moves — Google keeps the old URL in the index; you lose ranking consolidation.
  • Redirecting non-matching content — treated as a soft 404 and given no ranking value.
  • Removing the 301 too early — takes months for Google to fully attribute signals. Leave it up.

Häufig gestellte Fragen

Yes. A 301 redirect passes roughly 90–99% of link equity (PageRank) from the old URL to the new one. Google has confirmed 301s consolidate ranking signals to the destination.

Google typically recognises a 301 within days to a few weeks, depending on crawl frequency. Small sites may take longer; well-crawled sites see the redirect honoured within 24–72 hours.

A 301 is permanent — Google eventually replaces the old URL with the new one in its index. A 302 is temporary — Google keeps the old URL and treats the new one as a short-term alternative.

Technically yes, but avoid it. Google stops following redirect chains after 5 hops. Each hop leaks a small amount of link equity, so always redirect directly to the final destination.

Yes. A 301 is an HTTP status code, so it works identically on mobile and desktop. If you're serving a separate m.example.com site, make sure the redirect points to the correct mobile-friendly URL.

Sources

Akshay VR

Akshay VR

Marketing Head · theStacc · Ex-Sr Marketing Specialist, ARKA 360

Akshay leads the editorial and content-ops function at theStacc. He writes about SEO craft, content operations, and the small decisions that compound into big ranking wins — from what to redirect to what to leave alone.