Redirect Chain Checker

Analyze HTTP redirect types and understand how redirect chains affect SEO, page speed, and user experience. Use the interactive checker below to test common redirect scenarios and validate your redirect strategy.

Tests the URL from your browser. Cross-origin redirects may not be fully traceable due to CORS.

Redirect Chain Checker
Figure 1 — Redirect Chain Checker

What Are HTTP Redirects?

HTTP redirects are server responses that tell browsers and search engines to go to a different URL than the one originally requested. They use 3xx status codes and are essential for URL management, site migrations, and maintaining SEO value. Understanding redirects is crucial for web developers, SEO professionals, and anyone managing DNS and web infrastructure.

When a redirect occurs, the server sends a response header containing the new location. The browser then makes a new request to that URL. If that URL also redirects, a redirect chain forms. Long chains waste time and can cause problems for search engines crawling your site.

HTTP Redirect Status Codes

Each redirect status code has different behavior regarding method preservation and caching:

CodeNamePermanent?Method Preserved?Use Case
301Moved PermanentlyYesNo (may change to GET)URL permanently changed, SEO migration
302FoundNoNo (may change to GET)Temporary redirect, A/B testing
303See OtherNoNo (always GET)POST-redirect-GET pattern (form submissions)
307Temporary RedirectNoYesTemporary redirect preserving POST method
308Permanent RedirectYesYesPermanent redirect preserving POST method

Pro Tip: For SEO purposes, always use 301 redirects for permanent URL changes. They pass approximately 95-99% of link equity (ranking power) to the destination URL. Using 302 for permanent moves can cause search engines to keep indexing the old URL. If you're migrating your site and changing DNS records, pair your DNS changes with proper 301 redirects to maintain search rankings.

Redirect Chains Explained

A redirect chain occurs when one redirect leads to another, creating a sequence of hops before reaching the final destination:

ScenarioChainImpact
HTTP to HTTPS + wwwhttp://site.com → https://site.com → https://www.site.com2 redirects, common and fixable
Old URL to new URL/old-page → /new-page1 redirect, acceptable
Multiple migrations/v1/ → /v2/ → /v3/ → /current/3 redirects, update to go directly to /current/
Protocol + domain + pathhttp://old.com → https://old.com → https://new.com → https://new.com/page3 redirects, significant delay

Each redirect in the chain adds latency (typically 50-200 ms per hop) and can dilute SEO value. Google recommends keeping redirect chains to a maximum of 3 hops, but ideally every redirect should go directly to the final destination.

How to Check Redirect Chains

You can trace redirect chains using command-line tools for full server-side analysis:

Using curl

# Follow redirects and show each hop:
curl -vL https://example.com 2>&1 | grep -E "^(< HTTP|< Location)"

# Show just the redirect chain:
curl -sIL https://example.com | grep -iE "^(HTTP|Location)"

# Follow redirects with timing:
curl -w "%{redirect_url}\n" -o /dev/null -sL https://example.com

Using wget

# Show redirect chain:
wget --spider -S https://example.com 2>&1 | grep -E "(HTTP|Location)"

For DNS-level redirects, a domain's A record may point to a different IP than expected. Use our Website IP Lookup to verify where the domain resolves, and our DNS Lookup for CNAME records that may be part of the redirect chain.

Note: Browser-based redirect testing (like this tool) is limited by CORS (Cross-Origin Resource Sharing) restrictions. Browsers cannot fully trace redirect chains across different domains because cross-origin responses don't expose intermediate redirect details. For comprehensive analysis, use server-side tools like curl -vL or dedicated SEO crawlers. The browser test above is useful for confirming whether a URL redirects at all and reaching the final destination.

SEO Impact of Redirects

Redirects have significant implications for search engine optimization:

  • 301 redirects pass link equity — Permanent redirects transfer nearly all ranking signals to the new URL. Use these for all permanent URL changes.
  • 302 redirects do not pass equity reliably — Search engines may keep indexing the old URL if you use 302 for permanent moves. Some SEO value may be lost.
  • Redirect chains dilute signals — Each hop in a chain can lose a small percentage of link equity. A chain of 3+ redirects may result in noticeable ranking drops.
  • Redirect loops cause crawl errors — If A redirects to B and B redirects to A, search engines cannot crawl either page, resulting in complete deindexing.
  • Crawl budget waste — Every redirect consumes part of your site's crawl budget. Large sites with many redirect chains may have slower indexing of new content.

When planning a site migration or URL restructure, create a comprehensive redirect map and test each redirect before going live. Ensure your DNS records and server configuration are aligned. If you're running a site on a DDNS domain, make sure redirects still work when IPs change.

Common Redirect Problems and Fixes

ProblemCauseFix
Redirect loopA → B → A (circular reference)Check server config and CDN rules for conflicting redirects
Long chain (3+ hops)Accumulated redirects from multiple migrationsUpdate all redirects to point directly to the final URL
Mixed protocol chainhttp → https redirect not at first hopEnsure the first redirect goes to HTTPS directly
302 for permanent movesIncorrect status code for permanent URL changesChange to 301 for permanent redirects
Trailing slash inconsistency/page redirects to /page/ or vice versaPick one convention and enforce consistently

Redirect Implementation Examples

Here are server configuration examples for the most common redirect scenarios:

Nginx

# HTTP to HTTPS
server {
    listen 80;
    server_name example.com www.example.com;
    return 301 https://example.com$request_uri;
}

# www to non-www
server {
    listen 443 ssl;
    server_name www.example.com;
    return 301 https://example.com$request_uri;
}

# Single page redirect
location = /old-page {
    return 301 /new-page;
}

Apache (.htaccess)

# HTTP to HTTPS
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# Single page redirect
Redirect 301 /old-page /new-page

Before implementing redirects, verify your DNS configuration is correct. If you're using Cloudflare or another CDN, check their page rules for redirect settings that may conflict with server-level rules. Also check your port configuration to ensure both HTTP (80) and HTTPS (443) are accessible.

Redirect Best Practices Checklist

Follow these guidelines for optimal redirect management:

  • Use 301 for permanent changes — Always use permanent redirects for URL changes, domain migrations, and protocol upgrades.
  • Minimize chain length — Every redirect should go directly to the final URL, not through intermediate hops.
  • Audit redirects regularly — Check for broken redirect chains, loops, and outdated redirects that should be cleaned up.
  • Update internal links — After implementing redirects, update internal links to point to the final URLs directly, avoiding unnecessary redirect hops.
  • Monitor with search console — Use Google Search Console to identify redirect errors, crawl issues, and coverage problems.
  • Test before deployment — Use curl -vL to verify redirect chains before and after configuration changes.
Key Takeaways
  • Use 301 redirects for permanent URL changes to preserve SEO value and link equity.
  • Keep redirect chains as short as possible — ideally one hop directly to the final destination.
  • Redirect loops cause pages to become completely inaccessible to both users and search engines.
  • Test redirect chains with curl -vL for accurate server-side analysis beyond what browsers can show.
  • Update internal links after migrations to avoid unnecessary redirect chains.
  • Audit your DNS records and server config together when troubleshooting redirect issues.

Video: HTTP Redirects Explained

Related Tools and Guides

Frequently Asked Questions

What is a redirect chain?

A redirect chain is a sequence of redirects where one URL redirects to another, which redirects to another, before reaching the final destination. For example: URL A → URL B → URL C. Each hop adds latency and can dilute SEO value.

Are redirect chains bad for SEO?

Yes. Each redirect in a chain can lose a small amount of link equity (ranking power), and long chains waste search engine crawl budget. Google recommends minimizing chain length. Always redirect directly to the final destination URL.

What is the difference between 301 and 302 redirects?

A 301 redirect is permanent — it tells search engines to transfer all ranking signals to the new URL and stop indexing the old one. A 302 redirect is temporary — search engines keep the old URL indexed and don't transfer full link equity. Use 301 for permanent changes.

How many redirects are too many?

Most browsers follow up to 20 redirects before stopping (Chrome follows 20, Firefox follows 20). However, for SEO and performance, keep chains to 1-2 hops maximum. Anything beyond 3 hops should be consolidated into a direct redirect.

Do redirects affect page speed?

Yes. Each redirect adds a full HTTP request-response cycle (50-200 ms per hop). A chain of 3 redirects can add 150-600 ms to page load time. This directly impacts user experience and Core Web Vitals metrics.

How do I fix a redirect loop?

Redirect loops occur when URL A redirects to URL B and URL B redirects back to A. Check your server configuration (Nginx, Apache), CDN page rules (Cloudflare), and any application-level redirects. Often, conflicting rules at different levels (server + CDN) create loops.

Should I redirect HTTP to HTTPS?

Yes, always. Use a 301 redirect from HTTP to HTTPS for security and SEO. Google treats HTTPS as a ranking signal. Ensure the redirect happens in a single hop — http://example.com should go directly to https://example.com, not through intermediate steps. Check that your gateway and server are properly configured for HTTPS.

About Tommy N.

Tommy is the founder of RouterHax and a network engineer with 10+ years of experience in home and enterprise networking. He specializes in router configuration, WiFi optimization, and network security. When not writing guides, he's testing the latest mesh WiFi systems and helping readers troubleshoot their home networks.

Promotion for FREE Gifts. Moreover, Free Items here. Disable Ad Blocker to get them all.

Once done, hit any button as below