HTTP redirects, SEO migrations and troubleshooting

How Does Redirects Work? A Complete SEO Guide

A redirect tells a browser, crawler or API client that a requested URL should be retrieved from another location. Most redirects use an HTTP 3xx status code and a Location header. For SEO, use a server-side 301 or 308 when a move is permanent, and a 302, 303 or 307 when it is temporary. Map each old URL directly to its closest relevant destination, update internal signals and test the final response. Avoid chains, loops, irrelevant destinations and accidental method changes.

Updated August 11, 2026SEOS.co Editorial Research
How Does Redirects Work? A Complete SEO Guide

TL;DR

Key Takeaways

  • A redirect normally combines an HTTP 3xx response with a Location header identifying the next URL.
  • Use 301 or 308 for permanent moves, and 302, 303 or 307 for temporary routing.
  • Use 307 or 308 when the request method and body must be preserved.
  • Redirect each source directly to the final relevant URL instead of creating multiple hops.
  • Redirects are migration and canonicalization signals, but they do not replace internal links, canonicals or clean sitemaps.
  • An irrelevant redirect, such as sending every deleted page to the homepage, may be interpreted as a soft 404.
  • Test status codes, destinations, query parameters, loops, mobile behavior and non-GET requests before launch.
  • Monitor crawl logs, indexation, organic landing pages, errors and final URL latency after deployment.

What a redirect actually does

A redirect is an instruction that maps one requested URL to another. A client first requests URL A. The server responds with a 3xx status and usually a Location header containing URL B. The client then makes another request to URL B. This second request is why every redirect adds a network round trip.

For example, a request for http://example.com/old-shoes might receive a 301 response pointing to https://www.example.com/shoes. The browser follows that location and requests the final page. Search crawlers follow broadly the same process, although indexing decisions also depend on relevance, canonical signals, crawl access and the stability of the redirect.

A redirect is different from a server rewrite. A rewrite can internally serve different content while the visible URL stays unchanged. It is also different from a canonical link. A canonical suggests which indexable URL represents a set of similar pages, while a redirect removes the source from the normal user journey and sends the visitor elsewhere.

Which redirect status code should you use?

The correct code depends on permanence and request semantics. The most important distinction is not simply 301 versus 302. You must also decide whether the receiving request is allowed to change method.

StatusMeaningMethod behaviorBest useSEO expectation
301Moved PermanentlySome clients may change POST to GETPermanent URL or domain move for ordinary pagesStrong permanent canonicalization signal
302Found, temporarySome clients may change POST to GETShort-lived routing, testing or temporary availabilitySource URL is generally expected to remain selected
303See OtherDirects the client to retrieve another resource with GETPost-submission confirmation pagesUsually an application workflow decision
307Temporary RedirectPreserves method and bodyTemporary API, form or transaction routingTemporary signal
308Permanent RedirectPreserves method and bodyPermanent moves where method preservation mattersStrong permanent signal

RFC 9110 documents the historical ambiguity around 301 and 302 and the explicit method preservation of 307 and 308. For normal GET-based web pages, 301 and 308 can both represent a permanent move. For checkout, authentication, uploads, APIs or forms, method behavior must be tested rather than assumed.

How redirects affect SEO, crawling and indexing

Google describes permanent server-side redirects as signals that the destination should become canonical. Temporary redirects generally indicate that the source should remain the preferred URL. These are signals rather than a guarantee that a specific destination will immediately replace the source in search results.

Relevance matters. A retired product can redirect to its direct successor, a highly equivalent category or a consolidated resource that satisfies the same intent. Redirecting hundreds of unrelated pages to a homepage does not conserve their value. Google warns that irrelevant destinations may be treated as soft 404s.

Redirects also consume requests. A crawler that encounters HTTP to HTTPS, then non-www to www, then an old path and finally a new path has made four requests for one page. Google advises avoiding long chains because they can hinder crawling. Independent WebSci 2025 research followed up to 10 hops across 11 million redirecting URIs and reported that only half terminated successfully, illustrating how unreliable old redirect infrastructure can become at web scale.

A permanent redirect should therefore be supported by consistent signals: internal links pointing to the destination, a self-referencing canonical on the destination, hreflang annotations using final URLs and XML sitemaps containing only canonical 200-status URLs.

A redirect decision framework

Use this sequence before creating a rule:

  1. Does a close replacement exist? If yes, map the source to that page. If no, consider returning 404 or 410 rather than forcing an irrelevant destination.
  2. Is the move permanent? Use 301 or 308. If the original URL will return, use an appropriate temporary status.
  3. Must the request method survive? Choose 307 or 308 for workflows where POST, PUT or another method and its body must be retained.
  4. Is routing one-to-one or pattern-based? Use an explicit mapping for irregular migrations. Use patterns only when every matched source has a predictable equivalent.
  5. Are parameters meaningful? Preserve, transform or remove query parameters deliberately. Do not append tracking values blindly to every destination.
  6. Can the redirect reach the final URL in one hop? Point directly to the canonical HTTPS host and final path.
  7. Could the destination redirect again? Resolve that rule before release and verify the complete response path.

This framework prevents the common mistake of treating redirects as a blanket recovery mechanism. Sometimes the technically and semantically correct response is a clean 404, especially when content has no replacement and should leave the index.

How to implement a safe URL or domain migration

Start with an inventory containing every known old URL, its status, organic traffic, backlinks, internal links, canonical target and proposed destination. Combine crawler exports, XML sitemaps, analytics landing pages, server logs, Search Console data and backlink indexes. A crawl alone can miss orphan URLs that search engines or external sites still request.

Create a one-to-one mapping wherever possible. Preserve meaningful path relationships, but do not assume that a global regular expression will understand changed information architecture. Test edge cases including uppercase paths, trailing slashes, encoded characters, file extensions, ports, protocol and host variants, international folders and query strings.

  1. Prepare and quality-check the mapping before changing DNS or templates.
  2. Launch destination pages with correct titles, content, canonicals, robots directives and status codes.
  3. Install redirects at the earliest reliable server, load balancer or edge layer.
  4. Update navigation, contextual links, hreflang, canonicals, feeds, paid campaigns and XML sitemaps.
  5. Crawl the old URL list and verify one-hop delivery to an indexable 200-status destination.
  6. Submit the new sitemap and monitor indexing, crawling and landing-page performance.
  7. Retain migration redirects for at least one year, in line with Google’s general guidance, and longer when old links and direct traffic remain valuable.

For a domain migration, test every combination of old and new protocol, host and path. Avoid launching a domain move, content redesign, platform replacement and large-scale pruning simultaneously unless the business accepts that diagnosis will become much harder.

Redirect chains, loops and soft 404s

Chains

A chain occurs when one redirect points to another redirect. Common causes include years of migrations, separate HTTP and hostname rules, changed trailing-slash conventions and old campaign URLs. Replace the chain with a direct source-to-final rule. Also update internal links so users and crawlers do not need the redirect at all.

Loops

A loop occurs when routing rules send requests in a circle. Typical examples include a content management system forcing HTTPS while a proxy reports the request as HTTP, or one layer adding a trailing slash while another removes it. Inspect every response rather than relying on the browser’s final error page. Proxy headers, cache behavior and application rules may differ between environments.

Soft 404s

A soft 404 is a URL that returns a success response or redirects but does not provide a meaningful replacement. Redirecting every expired listing, deleted article or discontinued product to the homepage is a common cause. Decide by intent: use a direct successor when one exists, a relevant category when it genuinely satisfies the need, or 404 or 410 when no substitute exists.

Practitioner tools and community reports frequently surface three-hop or four-hop chains left by stacked migration rules. Those reports are useful warnings, but claims that chain cleanup alone caused ranking gains remain anecdotal because content changes, recrawling and other migration effects can occur at the same time.

How to diagnose redirect problems

Use a layered diagnostic process instead of checking a few URLs in a browser.

  1. Request: Record the exact source URL, method, user agent and parameters.
  2. Response: Capture each status code and Location value without automatically following redirects.
  3. Path: Follow every hop and identify protocol, host, slash, locale or parameter transformations.
  4. Destination: Confirm that the final page returns 200, is relevant, indexable and self-canonical.
  5. Signals: Check internal links, hreflang, sitemap entries, canonical tags and robots directives.
  6. Scale: crawl the full mapping and group failures by rule, template, host and destination status.
  7. Reality: inspect server or edge logs to see what Googlebot, Bingbot, users and application clients actually receive.

If a redirect works locally but fails in production, compare CDN rules, cache keys, proxy headers, geographic routing and application middleware. If Search Console reports a redirect error, check for loops, chains, blocked destinations, malformed Location headers and destinations that themselves fail. If the browser succeeds but an API breaks, test method and body preservation.

Useful KPIs include the percentage of old URLs reaching the correct destination in one hop, redirect error count, requests wasted on chains, soft 404 count, crawler hits to obsolete URLs, final response latency, index coverage of destination pages and organic clicks by migrated landing-page cohort. Monitor cohorts rather than only sitewide traffic, which can hide failures affecting a specific directory.

Redirect strategy for content consolidation and growth

Redirects are most valuable when they support a clear content graph. If several weak articles compete for the same intent, build one stronger hub, merge unique information, redirect retired URLs to that hub and replace internal links with direct links. Preserve useful spoke pages when they satisfy distinct follow-up queries rather than collapsing an entire topic into one oversized page.

For decay remediation, compare declining URLs by intent, backlinks, conversions and query overlap. A refresh is preferable when the URL still matches the subject. Consolidation is preferable when two pages answer substantially the same need. A redirect is not a substitute for transferring unique content that users and citations still require.

After consolidation, reclaim high-value external links by asking publishers to update links to the final URL. Monitor unlinked brand mentions, create original redirect audits or migration datasets, and publish statistics or comparison assets that attract natural references. Digital PR works best when the destination contains evidence worth citing, not when outreach merely requests links.

Controlled title and intent tests should occur on stable destination pages, not during the most fragile stage of a migration. Maintain a change log and strategic refresh schedule so performance changes can be connected to specific releases.

Redirects in AI search and answer systems

Google states that pages appearing in its AI search features do not require special redirect markup. They still need to be crawlable, indexable and technically eligible for Search. The same practical principle applies to retrieval systems generally: an answer system cannot reliably quote a page that is trapped behind loops, blocked after redirection or replaced by an unrelated destination.

For Google AI Overviews or AI Mode, Bing and Copilot, and systems such as ChatGPT, preserve stable final URLs for definitions, procedures, comparison tables and original evidence. Redirect old citations directly to equivalent passages where possible. If a cited page is consolidated, retain the cited facts and context on the destination instead of sending readers to a generic category.

Query fanout also matters. A redirect guide may be retrieved for follow-up questions about 301 versus 308, chains, migrations, soft 404s or method preservation. Clear headings and self-contained explanations improve answer extraction, while clean canonical signals reduce ambiguity over which URL represents the information.

Proven facts, practitioner consensus and uncertainty

Proven or formally documented

  • HTTP defines distinct 3xx status semantics, and 307 and 308 preserve the request method and body.
  • Google recommends server-side permanent redirects for permanent moves and advises avoiding long chains.
  • Every followed redirect requires another request, adding latency and another opportunity for failure.

Strong practitioner consensus

  • One-hop mappings, direct internal links and consistent canonical signals make migrations easier to crawl, test and maintain.
  • Server logs expose redirect traffic and failures that browser spot checks and limited crawls can miss.
  • Redirecting unrelated deleted pages to a homepage is usually less useful than a relevant replacement or honest 404 response.

Still conditional or uncertain

  • There is no universal number of hops at which rankings will decline. Risk depends on scale, crawl demand, latency and whether the chain terminates successfully.
  • The exact time required for search engines to replace old URLs varies by crawl frequency, site authority, migration size and signal consistency.
  • A post-cleanup ranking increase does not prove that redirect chains were the sole cause.

When selecting a redirect tool, CDN feature or migration consultant, require bulk mapping, regular-expression safeguards, query-string controls, loop detection, exportable test results, rollback procedures and log access. Avoid services that promise to preserve rankings regardless of content relevance or that propose deceptive redirects for users and crawlers.

FREQUENTLY ASKED QUESTIONS

SEO Questions Answered

What is the simplest explanation of how a redirect works?

A client requests one URL, receives a response telling it to use another URL, and makes a new request to that location. On the web, this normally uses an HTTP 3xx status code and a Location header.

Should I use a 301 or 302 redirect for SEO?

Use 301 when the move is permanent and 302 when it is temporary. A permanent redirect signals that the destination should replace the source. A temporary redirect usually indicates that the source URL should remain preferred.

What is the difference between 301 and 308?

Both indicate a permanent move. A 308 explicitly preserves the original request method and body. A 301 may be changed from POST to GET by some clients because of historical behavior. For ordinary GET pages, either can represent a permanent move.

Do redirects pass SEO value?

A relevant permanent redirect can consolidate canonical and link signals into the destination, but it is not a guarantee that every signal or ranking will transfer unchanged. Destination relevance, content quality, crawl access and consistent internal signals still matter.

How many redirect hops are acceptable?

The operational target should be zero hops for internal links and one hop for an old external URL. Search engines can follow redirects, but each extra hop adds latency, consumes another request and creates another failure point.

Should every deleted page redirect to the homepage?

No. Redirect only when a close replacement satisfies the same intent. An unrelated homepage redirect may be treated as a soft 404. Return 404 or 410 when no meaningful replacement exists.

How long should migration redirects stay active?

Google generally recommends keeping them for at least one year. Keeping valuable redirects longer can help users and preserve traffic from old backlinks, bookmarks and documents.

Why does a redirect work in a browser but fail for Google or an API?

The browser may cache redirects, follow multiple hops automatically or convert a request method. Crawlers and APIs may encounter different user-agent rules, blocked destinations, proxy behavior or method requirements. Inspect the raw response path and server logs.

Do URL fragments get sent to the server?

The fragment after a hash is normally handled by the client and is not sent as part of the HTTP request. Test fragment-dependent applications carefully because server redirect rules cannot inspect information they never receive.

Are JavaScript and meta refresh redirects safe for SEO?

They can work in some circumstances, but server-side HTTP redirects are more direct and are Google’s preferred approach. Client-side redirects may depend on rendering, introduce delays and produce less predictable behavior for users and non-browser clients.

RESEARCH SOURCES

Sources and Verification

  1. RFC 9110: HTTP SemanticsPrimary HTTP specification covering redirect status semantics, Location behavior and method handling.
  2. Google Search Central: Redirects and Google SearchOfficial guidance on permanent, temporary, server-side and client-side redirects.
  3. MDN Web Docs: Redirections in HTTPTechnical reference explaining HTTP, HTML and JavaScript redirection behavior and risks.
  4. WebSci 2025 Redirect StudyIndependent study of 11 million redirecting URIs, termination outcomes, long paths and soft 404 behavior.
  5. HTTP Archive Crawl Dataset ReleaseDataset documentation relevant to longitudinal analysis of page and redirect behavior.
  6. Web Crawl Refusals: Insights From Common CrawlResearch showing how crawler refusals and misleading responses can affect web crawl observations.
  7. Ahrefs: What Are Redirect Chains?Practitioner documentation for detecting redirect chains through site auditing.
  8. Search Engine Land: Too Many RedirectsPractitioner guide covering chains, loops, logs, latency and crawl implications.
  9. Redirects Studio: Redirect Chains and SEOSpecialist practitioner discussion of redirect chain detection and cleanup.
  10. Rankability: Redirect ChainsIndependent practitioner summary of redirect chains as a technical SEO issue.
  11. Reddit SEO_Xpert Redirect Chain DiscussionCurrent community example of layered migrations producing extensive chains. Anecdotal evidence only.
  12. Research sourceConsulted during live web research for this page.
  13. RFC 9110 Inline ErrataOfficial errata record for the HTTP semantics specification.
  14. Google Search Central: Site Moves With URL ChangesOfficial migration guidance covering URL mapping, testing, sitemaps and redirect retention.
  15. MDN Web Docs: HTTP Response Status CodesReference for 3xx status definitions and related HTTP responses.
  16. Reddit TechSEO Migration Testing DiscussionCommunity discussion about testing redirect mappings during site migrations. Treat recommendations as anecdotal.
  17. Research sourceConsulted during live web research for this page.
  18. RFC 9700: Best Current Practice for OAuth SecurityPrimary security guidance relevant to strict redirect URI handling in authentication workflows.
  19. Google Search Central: Ask Google to RecrawlOfficial options for requesting recrawling after important page or sitemap changes.
  20. Research sourceConsulted during live web research for this page.

SEOS.CO EXPERT MATCH

Ready to Find the SEO Partner That Can Win Your Market?

Tell us your market, goals and growth targets. SEOS.co will help narrow the field and connect you with a serious SEO partner built for the opportunity.

Research-backed guidanceBuilt around your marketNo canned shortlist
Get My Free SEO Agency RecommendationTell us what you need. We will help narrow the field.