Magento to Shopify SEO Migration: How to Keep Your Rankings
You keep your rankings in a Magento to Shopify SEO migration by giving every old URL a permanent redirect to its closest equivalent, carrying content and metadata across, and checking Search Console from launch day. Expect temporary movement. Google says ranking fluctuations are normal while it recrawls and reindexes a moved site.
The rest of this post is the order we would do it in. If you are still deciding whether to move, start with our Magento stay-or-move assessment. If you have decided, the Magento to Shopify migration page covers how we approach the whole project, and this post covers the search side.
Why Magento URLs and Shopify URLs do not match
Shopify builds URLs from fixed prefixes. Products live under /products/, collections under /collections/, pages under /pages/ and blog posts under /blogs/. You choose the handle (the last part of the URL), but you do not choose the structure around it.
Magento gives you more freedom, and most stores use it. Each product, category and CMS page has a URL key. Many stores add a .html suffix, and many put products under category paths such as /mens/shirts/blue-oxford.html. Layered navigation can add filter parameters on top.
That gap is the reason redirects are not optional. Almost no old URL will exist on the new store, so each one needs somewhere to go.
| Magento pattern (typical) | Shopify destination |
|---|---|
/blue-oxford-shirt.html (product) |
/products/blue-oxford-shirt |
/mens/shirts.html (category) |
/collections/shirts |
/mens/shirts/blue-oxford.html (product under category path) |
/products/blue-oxford-shirt |
/about-us (CMS page) |
/pages/about-us |
/blog/post-title (blog extension) |
/blogs/news/post-title |
/mens/shirts.html?color=blue (filter) |
The nearest collection, or a dedicated collection if it has demand |
Your store will differ. Mapping is a decision for each URL, not a find-and-replace.
Build the redirect map first
Inventory every URL, not just the ones in your sitemap (our replatforming checklist and migration cost guide cover the wider project). Do it in this order.
- Collect URLs from several sources. Search Console performance and indexing reports, Google Analytics landing pages, server logs, the Magento sitemap, a crawl of the live site, and a backlink export. Merge and de-duplicate.
- Rank them. Mark URLs with impressions, clicks, orders or inbound links. Those get a hand-checked destination. The long tail can be mapped by pattern.
- Map to the closest equivalent. A discontinued product goes to its category or collection, not the home page. Google’s guidance is to redirect to the new URL that matches the old one, and to avoid chains by pointing old URLs straight to the final destination.
- Use permanent redirects. Google recommends server-side permanent redirects (301 or 308) for site moves, and says permanent redirects do not cause a loss in PageRank.
- Test the file before import. Check for loops, chains, blank destinations and destinations that do not exist on the new store.
What Shopify’s redirect tool allows
We checked Shopify’s URL redirects help page in November 2026. These are the points that catch teams out:
- Limits. A standard store can hold up to 100,000 URL redirects. Plus stores can hold up to 20,000,000.
- Import. Use Content, Menus, URL redirects, then Import. Shopify supplies a sample CSV, so build your file from that template. The help page does not state a row or file-size limit, so split a very large file and import in batches.
- Broken URLs only. Shopify says that if the old URL still loads a valid page, the redirect will not work. Redirects apply to URLs that return nothing.
- Reserved paths. Some prefixes cannot be redirected, including
/apps,/cart,/orders,/productsand/collectionsthemselves, and/collections/all. - Query strings. Shopify warns that URLs with query strings might not work as expected. Plan filter URLs separately (below).
- Markets. A redirect applies to all market subfolders, and a subfolder that needs a different destination needs its own redirect.
- No wildcards. The help page describes no wildcard or regex support. Plan on one row per URL, which is why the spreadsheet matters.
Layered navigation and filter URLs
Magento stores often have thousands of crawlable filter URLs, such as colour, size and price combinations. Most should not be carried across one by one.
- Check which ones earn traffic. If a filter URL has real impressions in Search Console, give it a proper collection (for example, a “Blue oxford shirts” collection) and redirect to that.
- Redirect the rest to the parent category. A visitor who arrives from an old filtered link still lands somewhere relevant.
- Test the new filtering. How Shopify filtering appears in URLs depends on your theme, so crawl the staging store and see what a search engine would find.
Canonicals and duplicate product URLs on Shopify
A Shopify product can be reached at /products/blue-oxford-shirt and at /collections/shirts/products/blue-oxford-shirt. Shopify’s partner documentation says the canonical URL for a product is the default product page, with no collection or variant selected, and that canonical_url strips URL parameters by default. So the duplicate is handled, provided the theme outputs the canonical tag.
Check three things on staging:
- The canonical tag on a product reached through a collection. It should point at the
/products/URL. - Internal links. Menus, collection grids and related products should link to the canonical URL where the theme allows it, so crawlers see one version.
- Custom themes. If you have built or heavily changed a theme, confirm the head still outputs canonicals. A theme that drops them is a quiet cause of duplicate content.
Metadata, content and structured data
- Titles and descriptions. Export them from Magento and import them against the right Shopify products, collections and pages. Shopify’s help page accepts page titles up to 70 characters and advises keeping them to 60 or fewer, and recommends meta descriptions of about 160 characters.
- Category copy. Magento category descriptions often hold the text that ranks. Move it into the collection description. A collection with no copy often ranks worse than the category it replaces.
- Headings and internal links. Check that H1s, breadcrumbs and in-content links survive. Links pointing at old URLs should be updated to the new ones, not left to redirect. Google says redirects slow users down and recommends updating your own links.
- Structured data. Google’s ecommerce guidance names
Productmarkup for product pages, andProductGroupfor variants. Test sampled product pages in Google’s Rich Results Test before launch and compare with the old store. - Images and alt text. Shopify says alt text helps search engines understand images, and can be set on product images, collection images and blog featured images. Bring Magento’s alt text across in the product import, and keep image file names descriptive where you can.
Multi-region stores, hreflang and Markets
If your Magento setup has several store views for different countries or languages, plan the Shopify equivalent before you map URLs, because the URL structure comes from it.
Shopify’s international SEO page says hreflang tags are generated automatically from your market and language setup, but only for markets that have their own domain, subdomain or subfolder. Automatic hreflang is on by default and can be turned off if you manage tags yourself. Shopify recommends subfolders for most stores.
For a migration, that means deciding early which Magento store view becomes which market, and mapping the old regional URLs to the matching subfolder or domain. Redirect each store view’s URLs separately. An Australian store that also trades in New Zealand should not send every old /nz/ URL to the Australian home page.
XML sitemap and Search Console
Shopify generates the sitemap automatically at /sitemap.xml on the root of your domain, and it lists products, pages, collections and blog posts. You do not build it, so the work is submitting and watching it.
- Verify the property in Search Console. Shopify’s help describes doing this with Google’s HTML tag in
theme.liquid. - Submit
sitemap.xmlunder Sitemaps on launch day. If you run international domains, submit one for each. Google says submitting a sitemap can make discovery quicker. - Leave the old sitemap until Google has processed the move, then remove it. Google says warnings about old-sitemap URLs that now redirect are normal.
Do you need Change of Address?
Only if the domain changes. Google’s help says the Change of Address tool is for moving from one domain or subdomain to another, and that moving pages within a site needs redirects and updated sitemaps only. If your store keeps example.com.au and changes platform, you do not use it. If you also change domain or move from www to a bare domain, read Google’s guidance on site moves before launch, because that is a different job.
Benchmark before launch, monitor after
You cannot judge a migration without a before. Take these snapshots two to four weeks ahead:
- Search Console clicks, impressions, average position and CTR for the top 100 queries and top 100 pages.
- Indexed page count and the main indexing report errors.
- A full crawl of the old site, with status codes, titles, canonicals and H1s.
- Organic sessions, orders and revenue by landing page.
After launch, check on a schedule: daily for the first fortnight, then weekly. Watch the Page indexing report for new 404s, the Crawl stats report for server errors, and the sitemap report for processed URLs. Re-crawl the old URL list monthly and confirm each one still lands on the intended page.
Launch-day checklist
| Check | What good looks like | When |
|---|---|---|
| Redirect file imported | Old URLs return a single 301 to the mapped page | Launch day |
| Sample of 200 old URLs tested | No chains, loops or 404s | Launch day |
| Canonicals | Product pages reached via collections canonicalise to /products/ |
Pre-launch staging, recheck on live |
robots.txt and indexing |
Live store is not blocked, no leftover noindex from staging |
Launch day |
| Sitemap | sitemap.xml submitted and readable |
Launch day |
| Titles, descriptions, H1s | Match the benchmark crawl for priority pages | Pre-launch |
| Structured data | Product markup passes the Rich Results Test on sampled products | Pre-launch |
| Hreflang (if multi-region) | Tags present for each market and pointing at the right URL | Launch day |
| Analytics and conversion tracking | Orders recorded in the new store | Launch day |
| Search Console monitoring | Indexing, crawl stats and sitemap reports reviewed | Daily for two weeks |
What to expect after launch
Google is straightforward about this. Its site move guidance says you may experience ranking fluctuations while it recrawls and reindexes your site, and that for medium-sized sites it can take a few weeks or more for Google to gradually show the new URLs, with larger sites taking longer. It also says Googlebot has to visit every URL on the old and new site at least once.
Google does not publish a recovery curve. What you can control is the cause of avoidable loss: missing redirects, redirect chains, dropped content, blocked crawling and broken canonicals. Fix those in the first fortnight, and keep the redirects for at least a year, as Google recommends.
Shakewell’s developers include 2 Adobe Commerce-certified and 3 Shopify-certified developers, so someone who understands the Magento URL setup and someone who knows how Shopify handles them can sit on the same redirect map. For the wider project, our ecommerce replatforming service covers data, integrations and testing alongside the search work, and the WooCommerce to Shopify guide shows the same redirect discipline from a different starting platform. If you are weighing the platforms themselves, see Adobe Commerce vs Shopify Plus in Australia.
Sources: Shopify: URL redirects, Shopify: find and submit your sitemap, Shopify: International SEO for markets, Shopify: adding keywords and alt text, Shopify Partners: canonical URLs, Google: site moves with URL changes, Google: Change of Address tool, Google: ecommerce structured data, all checked November 2026.
Common questions
Will I lose my Google rankings if I migrate from Magento to Shopify?
You should expect some temporary movement, but a lasting loss is not inevitable. Google says you may see ranking fluctuations while it recrawls and reindexes a site after a move, and that it can take a few weeks or more for medium-sized sites. Permanent redirects from every old URL to its closest new page, plus matching content and metadata, are what protect your position.
How do I redirect Magento URLs to Shopify?
Build a spreadsheet of every old URL and its new Shopify destination, then import it as a CSV under Content, Menus, URL redirects in the Shopify admin. Shopify's redirects only work for URLs that no longer load a page, so import them once the old URLs are gone from the new store. Point each old URL straight to its final destination, not through a chain.
Do I need Google's Change of Address tool for a Magento to Shopify migration?
Not if the domain stays the same. Google says the Change of Address tool is for moving from one domain or subdomain to another, and that moving pages within a site only needs redirects and updated sitemaps. If you also change domain at launch, use the tool for each verified variant of the old domain, on top of the redirects.
How long do redirects need to stay in place after a migration?
As long as possible. Google's site move guidance says to keep redirects for at least one year, because that gives Google time to transfer signals and recrawl links pointing at the old URLs. Keeping them indefinitely does no harm, and Shopify's limit of 100,000 redirects (20 million on Plus) leaves room for most stores.