How to fix redirect chains
To fix a redirect chain, make every old address redirect straight to the final page in a single step, then update your links so they point to that final page. Find the chains with a free crawler or a quick command, change the first redirect in each chain, and test again.
A redirect chain happens when one address redirects to a second address, which redirects to a third, before the visitor finally reaches a real page. For example, http://example.com/old may go to https://example.com/old, then to https://www.example.com/old, then to https://www.example.com/new-page. That is three redirects where one would do.
What people see
Usually nothing. The page loads, just a little slower. Sometimes you see a short blank screen or a flash of a different address in the browser bar. In the worst case the chain turns into a loop, where page A sends you to B and B sends you back to A, and the browser shows an error such as "too many redirects" (Chrome calls it ERR_TOO_MANY_REDIRECTS).
Chains build up quietly. A site moves to HTTPS, then adds www, then changes its page addresses, then gets a redesign. Each step adds a redirect on top of the old ones, and nobody goes back to tidy them.
Why it matters
- Speed. Every hop is another round trip between the visitor and your server before any content loads. On a slow mobile connection this adds up, especially when the chain is three or four steps long.
- Search. Google follows redirects, but only up to a limit (about 10 hops). Long chains waste crawl effort and can leave pages slow to be picked up or updated. Search engines also prefer to see one clear, final address for each page.
- Reliability. Chains are fragile. If one rule in the middle breaks or is deleted, every old link that passed through it can end in a 404 page.
- Trust and sales. Links in old emails, adverts, printed material and other websites keep passing through your chains. A slow or broken landing page there costs you real visitors.
How to check if your site has it
You can find redirect chains for free in three ways.
- Command line. On a Mac, Linux or Windows with curl installed, run the command below with one of your old addresses. Each
HTTPline is one step, and eachlocationline is where it goes next. More than one redirect before the final200means a chain.
curl -sIL http://example.com/old-page | grep -iE '^(HTTP|location)'
- Browser developer tools. Open the page, press F12, go to the Network tab, tick "Preserve log", then load the address. Redirects show up as lines with status 301 or 302 before the final page.
- A crawler. The free version of Screaming Frog SEO Spider crawls up to 500 URLs and has a redirect chains report. Online tools such as httpstatus.io check a handful of addresses at a time.
Also test the four versions of your home page: http://, https://, with www and without. Each should reach the final version in one step at most.
The broken links and 404 sweep in week 6 of SiteMonday looks at redirects as part of its crawl, so chains show up in the written report and the ranked fix list.
How to fix redirect chains in general
The idea is always the same: every old address should point directly to the final address.
- List each chain. Write down the start address and the final address. Ignore the middle steps.
- Find where each redirect is set. Common places are your CMS or a redirect plugin, your server config, your CDN (such as Cloudflare), and your hosting control panel. A chain often mixes several of these, which is why it is hard to spot.
- Change the first redirect to go straight to the end. Edit the rule for the start address so its destination is the final page. You can leave or delete the middle rules, but check nothing else still depends on them.
- Combine the protocol and host rules. The HTTP to HTTPS rule and the non-www to www rule should send visitors straight to
https://www.example.com(or whichever version you chose) in one step, not one after another. - Update internal links. Change menus, buttons, blog posts and your XML sitemap so they use the final address. Then fewer visitors ever hit a redirect at all.
- Use 301 for permanent moves. A 301 says the move is permanent. Use a 302 only when the change is truly temporary.
Platform notes
Menu names change between versions, themes and plans, so treat these as places to look.
- WordPress. Redirects usually live in a redirect plugin (Redirection, Yoast SEO Premium and Rank Math all have one), in the
.htaccessfile, or in your host's panel. Check all three. See the WordPress redirect chains guide. - Shopify. Look for URL Redirects in the admin, usually under Online Store, then Navigation. Changing a product or page handle can create a redirect automatically, so renaming twice creates a chain. See the Shopify guide.
- Cloudflare. Check Rules (Redirect Rules or Bulk Redirects) and the SSL/TLS settings. An "Always Use HTTPS" setting plus a redirect on your own server can double up, and the Flexible SSL mode is a known cause of loops.
- Nginx. Look for
return 301orrewritelines in yourserverblocks. Send HTTP straight to the final HTTPS host in onereturn 301. See the Nginx guide. - Apache. Look in
.htaccessor the virtual host forRedirectandRewriteRulelines. Put the most specific rules first and end them with[L,R=301]. - Next.js. Redirects are usually in the
redirectssection ofnext.config.js, though middleware or your host can add more. - Magento. Check URL Rewrites in the admin (usually under Marketing, then SEO and Search). Old product and category URLs often stack up here.
If you are not comfortable editing server files, ask your developer or host. A wrong rule can take your whole site offline, so take a backup first.
How to confirm the fix worked
- Repeat the same curl command or developer tools check on every start address you fixed. You should see one redirect, then a
200. - Test all four versions of your home page again.
- Open the pages in a private browser window, so cached redirects do not hide the result. Browsers remember 301 redirects for a long time.
- Re-run your crawler and confirm the redirect chains report is empty.
- In Google Search Console, use URL Inspection on a few key pages to confirm Google sees the final address.
How to stop it coming back
- Before you change an address, update the old rules. When page A already redirects to B and you move B to C, change A to point to C as well.
- Pick one preferred address (HTTPS, with or without www) and use it everywhere: links, sitemap, canonical tags and social profiles.
- Keep one list of redirects. Spread across a plugin, a server file and a CDN, they are almost impossible to manage.
- Re-check after big changes, such as a redesign, platform move, or domain change, and run a crawl every few months.
SiteMonday finds and explains these problems, but the fixes are for you or your developer to make.
Step by step for your platform
- Redirect chains on WordPress
- Redirect chains on Shopify
- Redirect chains on Cloudflare
- Redirect chains on Nginx
- Redirect chains on Apache
- Redirect chains on Next.js
- Redirect chains on Magento
Questions
What is the difference between a redirect chain and a redirect loop?
A chain eventually ends at a working page after several hops. A loop never ends, because the addresses send visitors around in a circle, so the browser gives up with an error.
How many redirects is too many?
Aim for one at most. Google follows only up to about 10 hops, but even two or three add delay and make your setup harder to maintain.
Do redirect chains hurt my Google rankings?
They are not usually a direct penalty, but they slow pages down, waste crawling effort and can delay Google noticing changes. Fixing them is a simple, low risk cleanup.
Should I use a 301 or a 302 redirect?
Use a 301 when the move is permanent, which is the case for most fixes. Use a 302 only for a temporary change, such as a short promotion page.
Can a plugin cause redirect chains?
Yes. Redirect, SEO and caching plugins can each add their own rules, and these may stack with rules in your server or CDN. Check every place that can redirect.
Why do I still see the old redirect after fixing it?
Browsers cache 301 redirects for a long time. Test in a private window or with curl, which does not use your browser cache.