Two joins to run before importing Shopify redirects
A Shopify redirect import can change a rule that already works. If the source path in an import matches the source of an existing redirect, Shopify updates that rule’s destination. There is a second case to check even when the sources are all new. An existing redirect might already point to one of them. Shopify’s URL redirect guide
Consider a store where an old ad points to /winter-cap. The store already redirects that path to /wool-cap. Adding a new rule from /wool-cap to /products/wool-cap gives the old ad another hop. A search for duplicate source paths misses this because /winter-cap and /wool-cap are different strings.
Here’s a small fixture you can run directly in SQLite. The first join looks up a proposed source among existing sources. The second looks up that same proposed source among existing destinations.
WITH
existing(source, destination) AS (
VALUES ('/winter-cap', '/wool-cap'),
('/sizing', '/pages/size-guide')
),
proposed(source, destination) AS (
VALUES ('/wool-cap', '/products/wool-cap'),
('/sizing', '/pages/fit-guide'),
('/mitts', '/products/mittens')
)
SELECT 'overwrite' AS finding, p.source AS source, e.destination AS existing_path,
p.destination AS proposed_destination
FROM proposed AS p
JOIN existing AS e ON e.source = p.source
WHERE e.destination <> p.destination
UNION ALL
SELECT 'incoming chain', p.source, e.source, p.destination
FROM proposed AS p
JOIN existing AS e ON e.destination = p.source
ORDER BY finding, source;
The query returns two rows. The incoming-chain row identifies /winter-cap as an earlier source to inspect. If the new product page is also the intended destination for that ad, consider mapping both old paths directly to it. The overwrite row shows that importing /sizing would replace /pages/size-guide with /pages/fit-guide. Keep that row only if the change is intentional.
For your own store, export the current redirect list before editing it. Load the old list and the proposed list into two tables and map Shopify’s Redirect from and Redirect to columns to source and destination. The two joins compare exact path strings for a single store and market. They can flag a chain whose earlier rule you also plan to replace, so review the pair against the complete change set. They also leave out loops, repeated rows, and paths that differ in case, encoding or trailing slash.
The fixture’s /mitts row produces no result. Whether it should be imported still depends on the storefront. Check that the source would return a 404 without the redirect and that the proposed destination serves the intended page.
Feed Guard publishes a free, editable single-rule checker and sells a $19 offline edition for full CSV comparisons. The example above uses synthetic paths and was tested in SQLite. This walkthrough was prepared with AI assistance. Try the free checker