
What Is a 301 Redirect?
301 redirects are server responses that permanently send users and search engines from one URL to another. A 301 tells search engines the page has moved for good, so the new URL should be shown in results and should inherit the old one’s signals. Use a 301 for permanent moves and a 302 for temporary ones.
| Code | Type | Google treats the target as canonical? | Use for |
|---|---|---|---|
| 301 | Permanent | Yes | A page or site that has moved for good |
| 308 | Permanent | Yes | As 301; keeps the request method |
| 302 | Temporary | No; keeps the source URL | Short-term changes, tests |
| 307 | Temporary | No | As 302; keeps the request method |
| Meta refresh, 0 seconds | Treated as permanent | Yes | When server redirects are impossible |
| JavaScript redirect | Treated as permanent, if rendered | Yes, if seen | Last resort |
The table follows Google’s guide to redirects and Google Search.
When Should You Use a 301 Redirect?
Use a 301 whenever a URL has permanently changed or been replaced.
- You changed a page’s URL or slug.
- You moved to a new domain.
- You switched from HTTP to HTTPS.
- You chose www or non-www as the preferred host.
- You merged two pages into one.
- You deleted a page that has a close replacement.
- You restructured the site.
- You discontinued a product with a direct successor.
Without a redirect, visitors following old links reach an error page, and the links and history of the old URL are wasted.
When Should You Use a 302 Instead?
Use a 302, or 307, when the change is temporary and the original URL will return.
- A product page temporarily pointing to a similar item while out of stock.
- A seasonal promotion replacing a page for a few weeks.
- A/B tests.
- Maintenance pages.
- Redirecting by location or language, where the original remains valid.
Google says temporary redirects leave the source URL as the one shown in results. If a “temporary” redirect stays for a long time, search engines may eventually treat it as permanent.
Google’s advice: use a permanent redirect only when you are sure it will not be reverted.
Do 301 Redirects Lose Ranking Value?
Not in any way you need to plan around, when done correctly. A permanent redirect tells Google that the target should be the canonical URL, and signals are consolidated on it.
What does lose value:
- Redirecting to an irrelevant page. A product redirected to the home page may be treated as a soft 404, and the old page’s signals are not passed.
- Long chains. Each hop adds delay and risk.
- Redirects later removed. The connection is lost.
- Changing content at the same time. If the new page is substantially different, rankings may change for that reason.
Redirect each old URL to the closest equivalent page.
How Do You Set Up a 301 Redirect?
Server-side redirects are the most reliable. Google says they are most likely to be interpreted correctly.
| Environment | Where to configure |
|---|---|
| Apache | .htaccess or server configuration |
| Nginx | Server configuration |
| WordPress | A redirect plugin, or your SEO plugin |
| Shopify | URL redirects in the admin |
| Wix and similar | The platform’s redirect manager |
| CDN or edge | Redirect rules at the edge |
| Application code | Framework routing |
Principles:
- One hop. Old URL straight to the final URL.
- Match precisely. Redirect each page to its counterpart, not to a general page.
- Include all variants: with and without trailing slash, HTTP and HTTPS.
- Preserve query strings where they matter.
- Document every redirect in a map.
Want this handled for you?
Our SEO services start with a full audit and a written plan, followed by a monthly report that shows what changed and why.
See our SEO servicesWhat Is a Redirect Chain?
A redirect chain is a sequence where one redirect leads to another before reaching the final page: A to B to C.
| Problem | Effect |
|---|---|
| Extra requests | Slower loading for users |
| Crawl waste | More requests per page for search engines |
| Risk of breakage | One broken link in the chain breaks everything after it |
| Abandoned crawl | Very long chains may not be followed to the end |
Chains build up over time: a page moved in 2022, moved again in 2024, then the site switched to HTTPS.
Fix: point every earlier URL directly at the final destination, and update internal links to the final URL.
A redirect loop is a chain that returns to its start: A to B to A. The browser shows an error. Loops usually come from conflicting rules, such as one forcing www and another removing it.
How Long Should a Redirect Stay in Place?
As long as possible. Google’s guide to site moves says to keep redirects for as long as possible, generally at least one year, and notes that users may benefit from keeping them indefinitely.
Reasons to keep them:
- External links to old URLs never update.
- Bookmarks and printed materials persist.
- Search engines need time to process a move.
For a domain change, keep ownership of the old domain and its redirects for years. If it lapses, someone else can register it.
How Do You Test Redirects?
- Enter the old URL in a browser, and confirm you land on the right page.
- Check the status code with a header checker or browser developer tools. It should read 301, not 302.
- Check the number of hops. One is the target.
- Crawl a list of old URLs with a crawler in list mode, and export the redirect chains. See our guide to using an SEO crawler.
- Use the URL Inspection tool on an old URL, to see how Google reads it.
- Test variants: HTTP, HTTPS, www, non-www, trailing slash.
- Recheck after deployment, and again a week later.
What Are the Common Errors?
| Error | Consequence | Fix |
|---|---|---|
| 302 used for a permanent move | Old URL may stay in results | Change to 301 |
| Everything redirected to the home page | Treated as soft 404s; value lost | Redirect page to page |
| Redirect chains | Slow; fragile | Point directly to the final URL |
| Redirect loops | Page unreachable | Fix conflicting rules |
| Redirecting to a 404 | Dead end | Update the target |
| Internal links to redirected URLs | Unnecessary hops | Link to the final URL |
| Redirected URLs left in the sitemap | Mixed signals | List final URLs only |
| Redirects removed after a few months | Links and visitors lost | Keep them |
| Old URL blocked in robots.txt | Google cannot see the redirect | Unblock |
| Meta refresh with a delay | Treated as temporary | Use a server redirect |
| Case or slash variants missed | Some old links break | Cover all variants |
How Do Redirects Relate to Canonical Tags?
Both tell search engines which URL to prefer. A redirect also moves the visitor.
- Use a redirect when the old URL should stop existing.
- Use a canonical when both URLs must keep working for users.
Do not use both in conflict, such as a page that redirects to B while B’s canonical points back to A. See our guide to canonical tags.
What Should You Do with Deleted Pages?
Not every removed page needs a redirect.
| Situation | Response |
|---|---|
| A close replacement exists | 301 to it |
| No replacement; page had links or traffic | 301 to the most relevant category or guide, if truly related |
| No replacement; no value | Return 404 or 410 |
| Temporarily unavailable | 302, or keep the page with a notice |
A 404 for a page that is truly gone is correct and not harmful. Redirecting unrelated pages to keep “link value” does not work.
For moving a whole site, see our site migration SEO checklist.
Frequently Asked Questions
Do 301 redirects lose ranking value?
Not when used correctly. A permanent redirect tells Google the target should be the canonical URL, and signals consolidate there. Value is lost when you redirect to an irrelevant page, create long chains, or remove the redirect later. Redirect each URL to its closest equivalent.
How long should a redirect stay in place?
Google advises keeping redirects as long as possible, generally at least one year, and notes that keeping them indefinitely benefits users. Links from other sites and old bookmarks never update, so removing a redirect breaks them. For domain changes, keep the old domain registered.
What is a redirect chain?
A sequence in which one redirect leads to another before reaching the final page, such as A to B to C. Chains slow loading, waste crawling and break easily. Fix them by pointing every old URL directly at the final destination and updating internal links.
What is the difference between a 301 and a 302?
A 301 is permanent: search engines show the new URL and treat it as canonical. A 302 is temporary: the original URL stays in results, because it is expected to return. Use a 301 for moves that will not be reversed, and a 302 for short-term changes.
Should I redirect deleted pages to the home page?
No. Redirecting many unrelated pages to the home page gives visitors something they did not ask for, and search engines may treat such redirects as soft 404 errors. Redirect to a closely related page if one exists. Otherwise, let the page return a 404.
Related Guides
Want this done for you?
See what each monthly plan includes, or send us your site and questions on WhatsApp. We do not promise rankings; we show the work and the data every month.
View SEO packages Chat on WhatsAppSources



