How to Detect Redirect Chains When Migrating a Shopify Store
Last year’s campaign redirects to a collection that is about to move. Checking only the new migration file can miss what happens to visitors who still use the campaign link.
1. Put the two maps side by side
The existing export contains the campaign rule:
Redirect from,Redirect to /gift-edit,/collections/gifts
The draft moves the collection:
Redirect from,Redirect to /collections/gifts,/collections/gift-guide
2. Follow each destination as a possible source
Model the proposed map by matching on source path and substituting the draft target where an existing rule would change. Start with /gift-edit. Its destination is also a source, so follow it again. The path reaches /collections/gift-guide in two hops. A destination missing from the map is a candidate final page; check that it really serves content.
3. Distinguish an extra hop from a loop
If the draft instead sends /collections/gifts back to /gift-edit, you revisit your starting point. That is a loop. For a spreadsheet check, look up successive targets and flag any previously visited path. With many rows, try a two-file sample audit to see the affected source and CSV line, then run your own files.
4. Point both historical paths at the agreed final page
If the new gift guide is the intended replacement, the proposed map becomes:
Redirect from,Redirect to /gift-edit,/collections/gift-guide /collections/gifts,/collections/gift-guide
Run the comparison again. Expect a changed destination for the campaign rule and no two-hop chain in these rows. Verify each retired source is eligible to redirect, then check the initial HTTP response and the final page after import. Test locale-prefixed URLs separately and follow external destinations on their actual hosts.
Shopify guidance on redirects and reserved paths
Related guide: How to Check Shopify Redirect CSV Before Import