Shopify URL Redirects: Limits, CSV Import and Why They Fail
Shopify URL redirects explained: where to manage them, CSV import, the 100,000 limit, paths you cannot redirect, and a checklist for redirects that do not work.
The short answer
Shopify URL redirects are permanent (301) redirects you manage at Content > Menus > URL redirects in the admin. You can create them one at a time, import them from a CSV with "Redirect from" and "Redirect to" columns, or create them through the Admin API. A store can hold up to 100,000 redirects, or 20,000,000 on Shopify Plus. The most common reason a Shopify redirect does not work is simple: Shopify only redirects URLs that would otherwise return a 404. If the old URL still loads a live product, collection or page, the redirect is ignored.
This post is the operational side: the tool, its limits and how to debug it. For planning a redirect map during a platform move, read moving URLs without losing SEO.
Four ways to create redirects
1. One at a time in the admin. Content > Menus > View URL redirects > Create URL redirect. Enter the old path in Redirect from, the new one in Redirect to, save. Use a relative path for destinations on your primary domain (/collections/linen) and a full URL for anything off it. Redirects start working immediately.
2. Automatically when a handle changes. When you edit the URL handle of a product, collection, page or blog post in its search engine listing section, Shopify offers a checkbox to create a redirect from the old URL. Leave it ticked. One related detail from Shopify's docs: if you hide a collection and later set its Online store visibility back to Visible, the redirect created for it is deleted automatically.
3. CSV import. On the URL redirects page, Import > Add file > Upload file, review, then Import redirects. The format is two columns:
Redirect from,Redirect to
/product/linen-throw/,/products/linen-throw
/old-collection,/collections/linen
/about-us.html,/pages/about
/partners,https://partners.example.com/
Export works the same way (Export, choose the redirects, CSV). Always export the current table before importing a large file. It is your rollback.
4. The Admin API. For scripted work, urlRedirectCreate creates one redirect:
mutation {
urlRedirectCreate(urlRedirect: { path: "/old-page", target: "/pages/new-page" }) {
urlRedirect { id path target }
userErrors { field message }
}
}
For bulk loads, urlRedirectImportCreate takes a staged-upload CSV and urlRedirectImportSubmit runs it. Bulk tools like Matrixify use a Redirects sheet with Path and Target columns and can create redirects automatically when they change handles in bulk, see the Matrixify field guide.
The limits that matter
- 100,000 redirects on standard plans, 20,000,000 on Plus. The "Redirect Limit Exceeded" error you might see from the API is unrelated: it means a request caused too many server-side redirects.
- No wildcards or regex. Shopify's redirect tool works path by path. Every URL needs its own row. A platform with pattern URLs like
/catalog/*has to be expanded into individual paths from a URL inventory. - Liquid is allowed in both fields, but Shopify cannot validate the result. I do not use it for migration redirects.
The 100,000 cap is reachable. A migration tool that generates a redirect for every product, every collection and every collection/product combination can produce several redirects per product. If you are on a standard plan with a large catalog, prune to the URLs that have clicks or backlinks before importing.
Why your redirect is not working
Run through this list in order. It covers nearly every case I see.
1. The old URL still resolves. Shopify only redirects broken URLs. A product that is still active and published on the Online Store, a collection that still exists at the old handle, or a page at that path wins over the redirect. Draft or archive the old product first, then the redirect fires. The full ordering rule for product retirements is in the migration redirects post.
2. The path uses a reserved prefix. Shopify does not allow redirects from URLs beginning with /apps, /application, /cart, /carts, /orders, /services or /shop. This last one hurts after migrations from Squarespace and from WooCommerce stores whose product URLs started with /shop/.
3. The path is a fixed Shopify path. /products, /collections and /collections/all cannot be redirected. Neither can reserved paths like /collections/vendors and /collections/types.
4. It is a collection tag URL. /collections/shirts/linen cannot be redirected, even when no product carries the tag. If tag pages are polluting your index, the fix is canonical and robots work, see Shopify canonical URLs and robots.txt on Shopify.
5. The source has a query string. Shopify's docs say redirects with query strings might not work as expected. Test each one, and do not build a plan that depends on ?p=123 style URLs redirecting.
6. It is a .html URL pointing at itself without .html. Shopify does not allow redirecting /about.html to /about. Redirecting /about.html to /pages/about is fine.
7. You sell in market subfolders. Shopify's docs say redirects do not automatically apply to all market subfolders, and you may need individual redirects for each one. Test /en-ca/old-path as well as /old-path.
8. Your browser cached an older 301. Browsers cache permanent redirects aggressively. Test in a private window or from the command line, never in the tab you used to test the previous version.
9. Small mismatches. Typos, encoded characters, uppercase letters and trailing slashes. Shopify normalizes some of these, but the exact behaviour is not documented, so test both /old-path and /old-path/ for important URLs.
10. The old domain is not connected. Redirects only run on domains pointed at Shopify. If the old site lived on a different domain, connect it in Settings > Domains so it forwards to your primary domain. Expect two hops in that case (domain redirect, then path redirect), which is acceptable.
Testing without guessing
Check one URL:
curl -sI https://www.example.com/product/linen-throw/ | grep -iE "^(HTTP|location)"
You want a 301 and a location header with the right destination. For a whole list, put one old URL per line in a file and run:
while read url; do printf "%s " "$url"; curl -s -o /dev/null -w "%{http_code} %{redirect_url}\n" "$url"; done < old-urls.txt
Anything returning 200 is an old URL that still resolves (cause 1). Anything returning 404 has no redirect or hit a reserved path (causes 2 to 6).
Chains, loops and hygiene
Every migration adds a layer of redirects. After two or three, chains appear: A goes to B, B goes to C. Export the table and look for any "Redirect to" path that also appears in the "Redirect from" column. Normalize first, because one column may hold full URLs and the other relative paths:
awk -F, 'NR>1 { from[$1]=1; to[NR]=$2 } END { for (i in to) if (to[i] in from) print "chain via " to[i] }' redirects.csv
Then point every source straight at its final destination. A loop (A to B, B to A) usually appears when someone reuses an old handle. It is rare, and it takes the page down, so check for it after any handle cleanup.
The rules I keep:
- Redirect to the closest equivalent, not the homepage. Google can treat irrelevant redirects to the homepage as soft 404s.
- Keep migration redirects for at least a year, which is what Google recommends for site moves. On Shopify there is little reason to ever remove them.
- Fix internal links and menus instead of leaning on redirects. A redirect is for the outside world.
- Review redirect files line by line when they touch pages with paid traffic. A wrong redirect costs money immediately, and no rollback recovers it.
If your redirect table has grown through several migrations and nobody trusts it anymore, auditing and cleaning it is part of the Shopify SEO work I do.
I build and audit Shopify redirect maps for migrations, handle cleanups and URL restructures. See [Shopify SEO expert](/shopify-seo-expert) and [Shopify migration expert](/shopify-migration-expert). Related: [Shopify Migration Expert Notes: Moving URLs Without Losing SEO](/blog/shopify-migration-expert-seo-redirects), [Matrixify: The Field Guide to Shopify Bulk Operations at Scale](/blog/matrixify-shopify-bulk-operations-guide).
Direct: [WhatsApp +55 11 98851-2788](https://wa.me/5511988512788) · [contact@matheusabrahao.com](mailto:contact@matheusabrahao.com)
Need a senior engineer who thinks like an operator?
I take on a small number of Shopify operations and senior engineering engagements each quarter. If your store needs catalog hygiene, technical SEO, performance or marketing automation done right, let’s talk.
Continue reading
Shopify Canonical URLs: The Duplicate Content Trap in Collections and Filters
How Shopify canonical URLs actually work, why collection-scoped product URLs and filter parameters multiply your index, and the theme-level fixes that hold.
robots.txt and sitemap.xml on Shopify: What the Platform Gives You and What It Gets Wrong
Customising Shopify robots.txt with robots.txt.liquid, what is really inside the generated sitemap.xml, and the two levers that remove a URL from it.