Create a permanent 301 redirect from every old Magento address to its Shopify equivalent: product URLs go to /products/handle and category URLs go to /collections/handle. The reliable source for the old addresses is Magento’s url_rewrite table, not a list of guessed slugs. Then test every redirect against the live store before launch and watch the 404 log afterward.

Where the list of old URLs comes from

Most stores have more old addresses than they expect. Magento keeps every product and category address in its url_rewrite table, often several per product: one at the root ending in .html, one under each category path, and one per store view. Shopify serves products only under /products/ and collections under /collections/, so every one of those addresses needs a 301 redirect.1 If you export only the current product URLs, you cover the root .html form and miss the category-path and store-view versions that Google may also have indexed.

Configurable products need a decision of their own. Magento’s child products usually have their own SKUs, stock, prices and sometimes their own URLs, and on Shopify they become variants of one product.1 Before deciding which children need a redirect to the parent product, we read the visibility flag and the URL rewrites for every one of them.1

Mapping each URL to the real Shopify handle

The simplest case is a product that sat at the root of the site. On Urban Remains Chicago, Magento served product pages at the root of the domain with an .html ending, and every old product address now returns a permanent 301 redirect to the same product on Shopify.2 That covered 21,264 products, so twenty years of newsletters, forum posts and bookmarks still arrive at the right object.2

Don’t assume the new handle is just the old slug without “.html”. When Shopify creates product handles, it drops apostrophes and commas and turns dots into hyphens, so new URLs differ slightly from old slugs.3 On projects like this we map every redirect to the handle Shopify actually created. Old slugs with punctuation also need attention: an old URL containing an apostrophe, comma or parentheses misses its redirect when it arrives percent-encoded, as it often does from Google, so those slugs need extra handling on the 404 page.3

Two Shopify rules shape the map. You can redirect only from URLs that are broken on Shopify, so a redirect must never point away from a live page, and a store can hold up to 100,000 redirects, or 20,000,000 on Shopify Plus.1 Because Magento keeps several addresses for each product, the count adds up quickly. A large catalog with category-path URLs can need more than 100,000, which is a real reason to choose Plus.1

Testing before launch and watching after

A redirect list in the admin proves nothing until each entry has been requested. Request each old path against the new store and confirm a 301 to a page that returns 200.4 Keep each redirect 1:1 where you can. Sending a live product to a generic page carries a high soft 404 risk, and a discontinued item with no replacement should go to the closest relevant category, or return 410 Gone if no category matches the search intent.5

Even after launch, expect some addresses the url_rewrite table didn’t catch. Watch the 404 log for category, search and campaign links that the exports did not list.2 Rankings usually move for a few weeks while Google re-crawls the store and then settle.1 It’s worth checking the old addresses again after a few months.

For your own store, three things set the size of the job: whether your Magento configuration adds category paths to product URLs, how many store views you run, and how many configurable children have their own URLs. Together they decide whether you are mapping a few thousand addresses or enough to go past the standard 100,000-redirect limit.

Sources

  1. Magento to Shopify Migration Guide (2026): Cost & Timeline Migration guide
  2. Magento to Shopify Case Study: Urban Remains Chicago Case study
  3. Redirects and SEO From our project notes
  4. Weebly to Shopify Migration Case Study: SoSlanty (2026) Case study
  5. 301 Redirects for Store Migrations: Avoid Soft 404s Article

“From our project notes” are short, anonymised lessons from migrations we have run. They describe what we typically see, not a guarantee for every store.

Want it answered for your store?

Tell us about your store in ten minutes. We come back within one business day with an honest assessment, a recommended track and a fixed price.