Guide · Troubleshooting

Twelve redirect mistakes (and how to spot them)

Most broken migrations aren’t exotic. They’re the same dozen mistakes, made in a hurry on launch day. Here’s what each one looks like, how to catch it with the tools on this site, and how to fix it.

Using a 302 for a permanent move

Plenty of plugins, frameworks and a bare PHP header('Location: …') send a temporary 302 by default. Search engines then keep the old URL indexed, sometimes for months, and the new page struggles to take its place.

Spot it

Trace an old URL. A yellow 302 or 307 on a page that has moved for good is the giveaway.

Fix it

Switch to 301 (or 308). In Apache that’s [R=301,L]; in PHP pass the code: header('Location: …', true, 301).

Redirect chains

Old URL → https version → www version → new slug. Each hop is another round trip for the visitor (slow on mobile) and another thing that can break. Chains usually grow one migration at a time.

Spot it

Any trace with more than one redirect. The bulk checker flags every chain in your list at once.

Fix it

Point every old rule straight at the final URL. Combine HTTPS and www into one rule. When a page moves again, update the original redirect, don’t stack a new one on top.

Sending everything to the homepage

It looks tidy, but a visitor clicking a link to a specific product lands somewhere unrelated, and Google treats a redirect to an irrelevant page as a “soft 404” — the old page’s value isn’t passed on.

Spot it

Trace a few deep, old URLs. If they all land on /, you’ve found it.

Fix it

Map old pages to their closest equivalents (the bulk generator makes this quick). Where nothing similar exists, return 410 Gone or a helpful 404.

Redirect loops

“This page isn’t working — too many redirects.” The classic cause: two layers disagreeing. Cloudflare set to Flexible SSL talks plain HTTP to your server, your server forces HTTPS, Cloudflare asks over HTTP again… forever. Or a CMS removes the www your .htaccess just added.

Spot it

The tracer stops on the repeat and shows the loop. The “Sent by” line on each hop often tells you which layers are arguing.

Fix it

Decide which single layer owns each rule (HTTPS, www, trailing slash) and remove it from the others. With Cloudflare, use Full (strict) SSL.

Forgetting the other versions of a URL

You redirected https://old.com/page… but not http://, www., /page/ or /page/index.php. Old links use all of these.

Spot it

Put every variant in the bulk checker: http and https, with and without www and trailing slash.

Fix it

Use pattern rules (whole-domain or folder recipes) instead of one-off lines where you can, and canonicalise HTTPS and www site-wide in one hop.

Letting the old domain (or its certificate) lapse

Redirects only work while the old domain still answers. Let the registration expire and every old link breaks — and someone else can buy the domain and its traffic. Drop the SSL certificate and HTTPS visitors get a scary warning before the redirect even runs.

Spot it

Trace https:// on the old domain. “HTTPS failed: the SSL certificate is invalid” means visitors are stuck at a warning page.

Fix it

Renew the old domain for years, set it to auto-renew, and keep a valid certificate on it (Let’s Encrypt is free).

Removing redirects too soon

Six months after launch someone tidies up .htaccess. Bookmarks, printed QR codes, email signatures and years-old forum links all start 404ing.

Spot it

Keep a CSV of your redirect map and re-run it through the bulk checker now and then.

Fix it

Keep redirects for at least a year — ideally indefinitely. They cost almost nothing.

Relative redirects behind a proxy

On hosts where Apache sits behind Nginx, Varnish or a CDN, Apache often sees plain HTTP. A rule with a relative target like /new-page comes out as http://example.com/new-page, which then gets bounced to https — a surprise second hop.

Spot it

The first hop’s Location header in the tracer starts with http:// even though you visited over https.

Fix it

Use full https://example.com/… targets in your rules. (This site had exactly this bug during its own rebuild.)

Testing with a 301 and getting stuck

Browsers cache 301s aggressively. Get the rule wrong, fix it on the server, and your browser keeps going to the wrong place — so you “fix” it again, and again.

Spot it

It works in a private window or in the tracer but not in your normal browser.

Fix it

Test with a 302, switch to 301 once it’s right. Clear a stuck 301 by clearing the browser cache for that site.

Redirecting to a page that doesn’t work

The redirect is perfect, but the destination is a 404, blocked by robots.txt, marked noindex, or itself canonicalised somewhere else. Search engines get mixed messages, visitors get a dead end.

Spot it

The tracer checks the final page for 4xx/5xx, noindex, meta refreshes and a canonical pointing elsewhere.

Fix it

Make redirects, canonical tags, sitemaps and internal links all agree on one final URL that returns 200.

Leaving internal links pointing at old URLs

Your own menus, footers and blog posts still link to the old addresses, so every click goes through a redirect — and search engines keep being told the old URLs matter.

Spot it

Crawl your site after launch and look for internal links that return 3xx.

Fix it

Update internal links, canonicals, hreflang and your XML sitemap to the new URLs. Redirects are a safety net for everyone else’s links, not yours.

Losing (or leaking) query strings

Campaign tracking like ?utm_source=newsletter vanishes in the redirect — or an old ?id=42 is carried onto a new URL where it means nothing.

Spot it

Trace a URL with a test parameter, e.g. /old-page?test=1, and see what arrives.

Fix it

Pass query strings through by default; drop them only when you’re matching on them. The generator has a switch for each.

Launch-day routine: paste your redirect map into the bulk checker, fix every warning, then run it again a week later. Most of this list gets caught in ten minutes.