301 Redirect
A 301 redirect is an HTTP status code that tells browsers and search engines a URL has moved permanently to a new address, and sends them there.
Also called: 301, permanent redirect, HTTP 301, moved permanently
A 301 redirect is a server response that says a URL has moved permanently and sends visitors and search engines to the new address. It is how you change URLs without throwing away the backlinks, rankings and bookmarks the old address earned. Every site migration, rebrand, merge and URL cleanup depends on getting 301s right.
How it works
When a browser or crawler requests the old URL, the server answers with status code 301 and a Location header naming the new URL. The browser follows instantly. Search engines read the 301 as a strong signal to drop the old URL from the index, show the new one and consolidate signals like backlinks onto it.
The redirect family:
- 301 Moved Permanently: the standard for permanent moves.
- 308 Permanent Redirect: also permanent, and keeps the request method (used more for apps and APIs).
- 302 Found and 307 Temporary Redirect: temporary moves, such as a short promo.
- Meta refresh and JavaScript redirects: client-side, slower and less reliable signals. Avoid them for SEO.
Redirects can be set at the server, in your hosting or CDN config, or in your framework (for example, a redirects file in Next.js on Vercel). Each hop adds latency, and Googlebot follows a limited number of hops in a chain before giving up, so always point old URLs straight to the final destination.
Example
Say a company rebrands and moves 600 URLs to a new domain with a new structure (assumptions throughout). The old domain has 1,500 referring domains, and organic search brings in 40,000 visits a month.
Scenario A, no redirect map: only the homepage redirects. The other 599 old URLs return 404s. Most of the links pointing at deep pages stop counting, and traffic can fall by half or more for months.
Scenario B, full map: each old URL is matched to its closest new equivalent in a spreadsheet, redirected in one hop, internal links are updated to the new URLs, and a change of address is submitted in Search Console. Traffic might dip 10% for a few weeks, then recover. On 40,000 visits at a 1% conversion rate, the gap between losing 50% and losing 10% for six months is roughly 960 conversions. The redirect map is a few days of work.
How to set it up
- Export every URL that has traffic, links or rankings from analytics, Search Console and your backlink tool.
- Map each old URL to the most relevant new URL, one to one where possible.
- Implement the rules server-side as 301s, with no chains or loops.
- Update internal links, canonical tags and sitemaps to the new URLs so you do not rely on redirects internally.
- Crawl the old URL list after launch to confirm every one returns a single 301 to a 200 page.
- Watch Search Console for 404s and fix them weekly for the first few months.
301s are also the main tool for cleanup: merging posts that cause keyword cannibalization and retiring pages during content pruning.
Common mistakes
- Redirecting every old URL to the homepage, which Google tends to treat like a soft 404.
- Leaving chains like A to B to C after several migrations, wasting crawl budget.
- Using 302s for permanent moves because they were the platform default.
- Removing redirect rules a few months after a migration to "clean up" config.
- Keeping internal links pointed at old URLs, so every click goes through a redirect.
FAQ
Does a 301 redirect lose SEO value?
Google has said that 301 and other server-side redirects do not lose PageRank. In practice, rankings may wobble for a few weeks while Google processes the change, and a redirect to an unrelated page may be treated like a broken page. Redirect to the closest equivalent content to keep the value.
What is the difference between a 301 and a 302 redirect?
A 301 says the move is permanent, so search engines should index the new URL. A 302 says the move is temporary, so search engines may keep the old URL indexed. Google will eventually treat a long-lived 302 like a 301, but use 301 when you mean permanent.
How long should I keep 301 redirects in place?
As long as possible, ideally permanently. Google recommends keeping them for at least a year, but backlinks, bookmarks and old emails keep pointing at old URLs for years. Redirect rules are cheap to keep and expensive to lose.
Related
Used in these articles
- ArticleBigCommerce vs Shopify: How Each One Charges You as You Grow
- ArticleRebranding Checklist: Every Place Your Old Name Lives, and How to Move It Without Losing Search Traffic
- ArticleAnchor Text: How to Write Internal and External Links That Rank
- ArticleCanonical Tags: Fix Duplicate Content Without Losing Rankings
- ArticleContent Pruning: When Deleting Pages Raises Traffic
- ArticleCrawl Budget: When It Matters and How to Fix Waste