An online store selling in three countries, after a rebrand and domain change · Snapshot: November 2026
Shopify, with Cloudflare in front of the old domain. Australia, New Zealand and the United States.
558 old addresses tested, 345 broken ones fixed, every one now redirects in a single step.
- Multi-country
- Migration
- Redirects
- hreflang
- Shopify
- Ecommerce
The problem
After the move to a new domain, Google kept only about 6 pages of the new site indexed for months.
The client was seeing 404 errors.
What I did
- I found the hreflang fault in the theme code. The template added the US prefix onto the current path, so some regional pages pointed to addresses that did not exist.
- I fixed it in two theme files, with a backup and a rollback.
- I collected 558 old addresses from 16 months of Search Console data and from web archives, and tested every one.
- I matched the dead addresses to the closest live page and added a fallback redirect layer.
- I submitted old-address sitemaps so Google re-crawls them, and removed dead sitemaps.
- I added Organization and WebSite schema with the old brand as an alternate name, and requested indexing on key pages.
Evidence
558
Old addresses collected and tested
345
Broken addresses fixed
0
Addresses made worse
558 of 558
Now return a 301 in one hop to a live page
The 558 old addresses, before and after
Before: what each old address did when tested. Most of the 345 gave a server error, and 116 sat on an old regional subdomain with no DNS record. After: every one redirects in one hop.
Before
213
345
After
558
- Redirected fine
- Did not redirect
- 301 in one hop to a live page
Where the 558 addresses came from
Sources
271
162
125
- Search Console only
- Both
- Web archive only
What the broken addresses were worth
| Measure | Figure |
|---|---|
| Impressions on addresses not redirecting, 16 months | About 63,000 |
| Clicks on addresses not redirecting, 16 months | 886 |
| Dead addresses mapped to the closest live page | 236 |
| Impressions covered by that mapping | 61,767 of 63,139 |
| Old-address sitemap entries answering 301 | 658 of 658 |
The result
All 558 old addresses now return a 301 in one hop to a live page. 345 were fixed and none were made worse.
This is a technical result only. I make no traffic claim for it.
Stack and tools
Shopify · Cloudflare · Search Console · Web archives · hreflang · schema.org