A redirect chain is when URL A redirects to B which redirects to C. On a WordPress site that’s lived through HTTPS migration, www-to-apex normalization, and a few permalink changes, every old URL can chain through three or four hops before reaching its current home. Each hop costs latency, drops a small amount of link equity, and wastes crawl budget. The fix is to flatten every chain to a single 301.
What’s happening
Redirects accumulate naturally on a WordPress site. The HTTPS migration added http:// → https://. The www normalization added https://www. → https://. A permalink restructure (date-based to post-name) added the old slug → new slug. A category rename added old category → new category. When a user hits the original URL, they cascade through every layer. Browsers handle this transparently up to 20 hops, but each hop is a full network round-trip. Google explicitly says it will follow redirect chains up to 5 hops but stops indexing the destination after that.
How to verify
Trace a redirect chain from any host with curl:
curl -sLI http://example.com/old-post-slug/ -o /dev/null -w "%{url_effective} %{http_code} %{redirect_url}\n"
curl -sIL https://www.example.com/some-page/ | grep -iE 'http/|location:'
The chain is whatever URLs appear in Location: headers before the final 200. From WordPress (if Redirection or Rank Math is active):
wp db query "SELECT url, action_data FROM wp_redirection_items WHERE action_type='url' LIMIT 30"
wp db query "SELECT sources, destination FROM wp_rank_math_redirections LIMIT 30"
For a network-wide audit, Screaming Frog or wget --max-redirect=20 --recursive will surface every chain. Search Console > Pages > “Page with redirect” lists URLs Google has noticed are redirected.
The fix
-
Inventory. Export your redirect rules from the SEO plugin (Yoast Premium, Rank Math, AIOSEO, Redirection plugin) plus any
.htaccessredirects plus any CDN-level rules. On a multi-year WordPress site, you’ll find duplicates and obsolete rules. -
Find chains. For each redirect, follow the destination through the inventory. If the destination is itself redirected, that’s a chain. A spreadsheet with source, destination, and “depth” (how many hops to final) makes this manageable. Stack Harbor’s enterprise WordPress audit ships with a CLI script that produces this report.
-
Flatten to single hops. For every chain, edit the original redirect to point directly at the final destination. If
A → B → C → D, change A to point at D, B to point at D, and delete C (or leave for safety, but flattened). -
Server-level redirects beat plugin redirects. HTTPS and www-to-apex redirects should live in
.htaccessor the Nginx vhost, not in a WordPress plugin. They fire before WordPress bootstraps, saving 100-500ms per request. Apache:<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^ https://example.com%{REQUEST_URI} [L,R=301] </IfModule> -
Slug redirects belong in WordPress. Content-team-managed slug changes (old article URL to new) should live in the redirect plugin — that’s where the editorial team can manage them. The performance cost is small for low-traffic redirects, and the workflow benefit is significant.
-
Audit
.htaccessfor legacy rules. On older WordPress sites,.htaccessaccumulates redirects from years of one-off changes. Comment unused ones and observe traffic for a week before deleting. Stack Harbor’s enterprise WordPress operations include quarterly redirect rule audits. -
CDN-level redirects for high-traffic cases. Cloudflare Page Rules, Bunny Edge Rules, and Fastly VCL can handle redirects at the edge, avoiding the origin entirely. Useful for campaign URL shorteners and high-volume legacy redirects.
-
Validate after flattening. Re-trace every redirect chain with
curl -sILand confirm exactly one 301 followed by 200. If you still see 301 → 301 → 200, the flatten missed a step. -
Don’t delete redirects with external backlinks. Before deleting an old redirect rule, check Search Console > Links for inbound backlinks to the original URL. If links exist, keep the redirect.
Stack Harbor handles redirect inventory and chain flattening as part of enterprise WordPress operations. Start the conversation when your WordPress site has redirects from three different sources and nobody knows what’s still in use.