Skip to content
> GRID ........ OK
> BUILD ....... OK
> DEPLOY ...... OK
07 — INSIGHTS

Migrating to Shopify without losing your SEO: the redirect playbook

10 minHexort EngineeringShopify · SEO · Migration

A step-by-step playbook for replatforming to Shopify while protecting search traffic: URL inventory, mapping, 301 redirects, metadata, launch-day checks and monitoring.

Replatforming is one of the riskiest things an online store can do to its organic traffic. The products don't change, the brand doesn't change — but almost every URL does, and search engines rank URLs, not intentions.

The good news is that traffic loss after a migration is mostly preventable. It comes down to a disciplined process for redirects and a few launch-day checks. This is the playbook we follow when moving stores from WooCommerce, Magento or custom platforms to Shopify.

Why migrations lose traffic

When a search engine has ranked example.com/shop/linen-shirt-white for two years and that URL suddenly returns a 404, the ranking signals attached to it — backlinks, history, relevance — have nowhere to go. Multiply that by thousands of product, category and blog URLs and you get the classic post-migration cliff.

A permanent (301) redirect tells search engines that a page has moved for good and where it went. Google has said that 301 redirects pass ranking signals to the new URL. Done properly, rankings usually settle on the new URLs within weeks. Done badly — redirects to the homepage, chains, missing pages — the losses can be large and slow to recover.

Step 1: understand Shopify's URL structure

Shopify uses fixed URL prefixes that you can't change:

  • products: /products/{handle}
  • collections: /collections/{handle}
  • pages: /pages/{handle}
  • blog posts: /blogs/{blog-handle}/{article-handle}

You control the handle (the last part), but not the prefix. That means URLs like /shop/linen-shirt-white or /category/shirts will inevitably change. Accept it early; the job is to map, not to preserve.

Handles are worth choosing carefully. Keeping the old slug as the new handle — /shop/linen-shirt-white becoming /products/linen-shirt-white — makes mapping easier and keeps URLs recognisable.

Step 2: build a complete URL inventory

You can't redirect what you haven't found. Combine several sources, because each misses something:

  1. A full crawl of the current site with an SEO crawler, capturing every indexable URL and its status code.
  2. The XML sitemap(s) of the current platform.
  3. Google Search Console: pages with impressions and clicks over the last 12–16 months.
  4. Analytics: landing pages that received organic traffic.
  5. Backlink data: URLs that other sites link to, including old ones that may already redirect.
  6. The platform's own export of products, categories, pages and posts.

Deduplicate into one spreadsheet. For each URL, record organic clicks, backlinks and page type. This tells you where to spend care: the top few hundred URLs by traffic and links deserve individual attention; the long tail can be mapped by rule.

Step 3: map every old URL to its best new home

Each old URL gets exactly one destination — the most relevant equivalent page on the new store.

  • Products → the same product. Match on SKU or a stable ID rather than on title, which may have changed.
  • Categories → the equivalent collection. If the category structure is changing, map to the closest collection, not the homepage.
  • Discontinued products → a close replacement or the parent collection. Redirecting everything to the homepage is treated much like a 404 by search engines and frustrates visitors.
  • Blog posts and pages → their migrated equivalents.
  • Filtered, sorted, paginated and session URLs → usually don't need individual redirects; make sure they aren't indexed and that the canonical versions are mapped.

Keep the mapping in a two-column sheet: old path, new path. Use paths (/shop/linen-shirt-white), not full URLs, for the import.

Old path New path
/shop/linen-shirt-white /products/linen-shirt-white
/category/shirts /collections/shirts
/blog/how-to-wash-linen /blogs/journal/how-to-wash-linen
/about-us /pages/about

Step 4: create the redirects in Shopify

Shopify has a built-in URL redirect manager in the admin (in the navigation/menus area, depending on your admin version), and it supports bulk import from CSV with "Redirect from" and "Redirect to" columns. Shopify's redirects are permanent 301s.

A few details save pain:

  • Shopify only applies a redirect when the old path doesn't exist on the store. If a live page exists at the "from" path, the page wins. That's rarely an issue in a migration, but it explains confusing tests.
  • Avoid chains. If an old URL was already redirecting on the old platform, point the original directly at the final Shopify URL. Every extra hop wastes crawl effort and can dilute signals.
  • Query strings and trailing slashes. Test how your old URLs with parameters and trailing slashes behave, and add redirects for important variants.
  • Very large redirect sets can be imported in batches; for exceptionally large or pattern-based needs, an app or edge-level redirect layer may be appropriate. Check Shopify's current documentation for limits.

Step 5: carry over everything that isn't a URL

Redirects preserve where pages were. You also need to preserve what pages say:

  • Page titles and meta descriptions for products, collections, pages and posts (Shopify has dedicated SEO fields for each).
  • Product and collection descriptions — don't let a template default replace years of written content.
  • Image alt text and, where possible, filenames.
  • Structured data: product, breadcrumb and organisation schema. Most modern Shopify themes output product structured data; verify it with Google's Rich Results Test.
  • Internal links inside descriptions and blog posts — update them to new URLs rather than relying on redirects forever.
  • Canonical tags and hreflang for multi-language or multi-market stores.

Step 6: launch day

On the day the domain points to Shopify:

  1. Import and verify the redirect CSV before switching DNS, so redirects are live the moment traffic arrives.
  2. Remove any password protection on the Shopify storefront.
  3. Test a sample of redirects — every top-traffic URL, plus a random sample from each page type — and confirm each returns a single 301 to a 200 page.
  4. Submit the new sitemap (Shopify generates /sitemap.xml automatically) in Google Search Console.
  5. Check robots.txt isn't blocking anything important.
  6. Crawl the new site for broken internal links, missing titles and accidental noindex.
curl -sI https://example.com/shop/linen-shirt-white
HTTP/2 301
location: https://example.com/products/linen-shirt-white

If the domain is unchanged, you don't need Search Console's Change of Address tool; that is for moving to a new domain. If you are changing domains at the same time, consider doing that as a separate step — changing platform and domain together makes problems harder to diagnose.

Step 7: monitor for the next three months

Some movement in rankings after a migration is normal while search engines recrawl and reprocess. What you're looking for is anything that doesn't settle.

  • Search Console → Pages report: watch for rising "Not found (404)" and "Page with redirect" counts on unexpected URLs.
  • Search Console → Performance: compare clicks and impressions by page type, week over week, against the same period before launch.
  • Server-side 404 log: Shopify does not provide a built-in 404 report, so use analytics on the 404 template or a crawler to catch URLs you missed, then add redirects.
  • Backlinks: for the most valuable links, ask the linking site to update the URL where practical.

Keep the redirects in place indefinitely. Removing them a year later because "the migration is done" throws away the signals they're still passing.

Common mistakes we fix

  • Redirecting every old URL to the homepage.
  • Mapping only products and forgetting categories, blog posts and PDFs.
  • Leaving redirect chains from the old platform intact.
  • Launching with the storefront password still on, or a theme noindex left over from staging.
  • Replacing hand-written product descriptions with template text.
  • Migrating platform, domain, URL structure and design all at once, then being unable to tell which change caused a drop.

The short version

Inventory every URL that matters. Map each to its most relevant new page. Import 301s before launch, test them, carry across metadata and content, then monitor for three months. It's unglamorous work, but it's the difference between a migration that grows the business and one that spends a year recovering.

If you're planning a move to Shopify and want a second pair of eyes on the redirect map, that's exactly the kind of mission we like.

Written by

Hexort Engineering

The design engineers at Hexort, a Dubai, UAE studio building flagship websites, Shopify and WooCommerce stores. We write about what we've learned shipping them.

Planning something similar?

Tell us what you're launching. You'll get a straight answer on scope, timeline and fit.

Comms