Skip to main content
True MarginTrue Margin
Shopify URL Redirects: How to Migrate Without Losing Rankings
← Back to blog

Shopify URL Redirects: How to Migrate Without Losing Rankings

By Jack·March 27, 2026·9 min read

Map every old URL to its new Shopify destination, set up 301 redirects before you flip the DNS, and verify with a crawl tool after launch. That's the entire migration redirect strategy in one sentence. Get it right and your rankings carry over. Get it wrong and you're watching months of SEO equity evaporate overnight.

URL redirects are the single most critical technical step in any Shopify migration. Not the theme. Not the product descriptions. Not the checkout flow. The redirects. Every other mistake during a migration is fixable after launch. Broken redirects cause ranking damage that compounds daily.

This guide covers the full process: auditing your current URL structure, mapping old paths to new ones, bulk uploading redirects in Shopify, and verifying everything post-launch. If you're also thinking about how AI search engines discover your store after a migration, our AI authority checker can show you where you stand with ChatGPT, Perplexity, and Google AI Overviews.

Why URL Redirects Are the #1 Migration Risk

When you move from WooCommerce, Magento, BigCommerce, or any other platform to Shopify, your URL structure changes. Every platform uses different URL patterns. Here's what that looks like in practice:

PlatformTypical Product URL PatternShopify Equivalent
WooCommerce/product/blue-widget//products/blue-widget
Magento/blue-widget.html/products/blue-widget
BigCommerce/blue-widget//products/blue-widget
Squarespace/store/p/blue-widget/products/blue-widget
Custom platform/shop/items/12345/products/blue-widget

Notice how none of these old URLs match the Shopify format. Without redirects, every single one of those old paths returns a 404 after migration. Google sees 404s, deindexes the pages, and any ranking signals attached to those URLs vanish. Backlinks? Gone. Page authority? Gone. Keyword rankings? Gone.

And it doesn't just affect products. Collections, blog posts, standalone pages, and even your old category structures all need redirects. I've seen stores lose 40-60% of their organic traffic within two weeks of a botched migration. Most of the time, the cause is the same: missing or incorrect redirects.

Step 1: Audit Every URL on Your Current Site

Before you touch Shopify, you need a complete inventory of every URL on your existing site. Not just the pages you remember. Every URL that Google has indexed, every URL with inbound backlinks, and every URL that gets organic traffic.

Here's your audit checklist:

  • Crawl your site. Use Screaming Frog, Sitebulb, or Ahrefs Site Audit to crawl every page. Export the full URL list.
  • Pull Google Search Console data. Export the Pages report to see which URLs get impressions and clicks. These are your highest-priority redirects.
  • Export your backlink profile. Use Ahrefs, Semrush, or Moz to find every external link pointing to your site. Any URL with backlinks must have a redirect.
  • Check your sitemap. Your XML sitemap lists every URL you've told Google to index. Export it as a baseline.
  • Grab your Google Analytics landing pages. Filter to organic traffic and export the top 200 landing pages by sessions. These URLs drive revenue.

Combine all five exports into a single spreadsheet. Deduplicate. You should have a master list of every URL that matters. For most stores, this is somewhere between 200 and 5,000 URLs. Larger catalogs can have tens of thousands.

Step 2: Map Old URLs to New Shopify URLs

This is the tedious part, and there's no shortcut that doesn't carry risk. Every old URL needs a specific destination on your new Shopify store. Here's the mapping logic:

Old URL TypeNew Shopify PathNotes
Product pages/products/[handle]Match by SKU or product name. Shopify auto-generates handles from titles.
Category/collection pages/collections/[handle]Map old categories to Shopify collections. Merge where it makes sense.
Blog posts/blogs/[blog-name]/[handle]Shopify requires a blog name prefix. Default is "news".
Standalone pages (about, contact, FAQ)/pages/[handle]Straightforward 1:1 mapping.
Pagination (/page/2, ?page=3)/collections/[handle]Redirect all paginated pages to the collection root.
Parameter URLs (?sort=price&filter=color)/collections/[handle]Redirect filtered/sorted views to the collection root.
Discontinued products/collections/[relevant-collection]Don't redirect to homepage. Redirect to the closest relevant collection.

One opinion I'll share here: never redirect discontinued products to your homepage. I see this advice everywhere and it's lazy. Google treats a redirect from a specific product page to a generic homepage as a soft 404. You don't get the link equity transfer. Redirect to the most relevant collection instead.

Your mapping spreadsheet should have two columns: "Redirect from" (the old path, starting with /) and "Redirect to" (the new Shopify path, also starting with /). Use relative paths, not full URLs. Shopify's redirect system expects relative paths for both fields.

Step 3: Bulk Upload Redirects in Shopify

Shopify supports bulk redirect imports via CSV. Here's the exact process:

  1. Go to Online Store > Navigation in your Shopify admin.
  2. Click URL Redirects in the top right.
  3. Click Import.
  4. Upload your CSV file with two columns: Redirect from and Redirect to.
  5. Review the preview. Shopify will flag any conflicts or formatting errors.
  6. Confirm the import.

A few rules Shopify enforces:

  • Both paths must start with /.
  • You can't redirect to an external URL. Both paths must be on the same domain.
  • You can't create a redirect that conflicts with an existing page, product, or collection URL.
  • Shopify creates 301 (permanent) redirects by default. This is what you want for migrations.
  • There's no hard limit on the number of redirects, but imports work best in batches of 1,000-2,000 rows.

For stores with more than 5,000 redirects, consider using the Shopify API or a migration app. The admin CSV import can be slow at scale, and you don't want to be debugging import errors on launch day.

Step 4: Handle the Edge Cases

The straightforward product-to-product redirects are easy. The edge cases are where migrations go sideways. Here are the ones that catch people:

Trailing slashes. Your old platform might use /products/widget/ while Shopify uses /products/widget (no trailing slash). Shopify handles this automatically for its own URLs, but your redirect "from" path should match the old URL exactly, including the trailing slash if the old platform used one.

Case sensitivity. Shopify URLs are lowercase. If your old platform had uppercase characters in URLs (like /Products/Blue-Widget), you need redirects for the exact case that was indexed. Google treats URLs as case-sensitive.

Query parameters. Shopify's built-in redirect system doesn't match query parameters. If your old URLs used parameters like ?id=123 for product pages, you'll need a Shopify app or custom theme code to handle those. The built-in redirect tool only matches the path portion of the URL.

Redirect chains. If your old site already had redirects (like from an even older migration), don't create chains. A > B > C wastes crawl budget and dilutes link equity with each hop. Map directly from the original URL (A) to the final Shopify destination (C).

Step 5: Pre-Launch Verification

Do not launch without testing your redirects. Here's the verification process:

  1. Spot-check your top 50 URLs. Manually visit each one and confirm it lands on the correct Shopify page. Start with your highest-traffic pages and pages with the most backlinks.
  2. Run a crawl against your redirect list. Use Screaming Frog pointed at your old URL list and verify every redirect returns a 301 status code pointing to the right destination.
  3. Check for redirect loops. A loop (A redirects to B, B redirects to A) will break the page completely. Crawl tools flag these automatically.
  4. Verify no live Shopify page conflicts with a redirect. If you have both a redirect from /products/widget and a live Shopify product at /products/widget, the live page wins and the redirect is ignored. Shopify won't let you create this conflict, but double-check anyway.

Migrating your store? Check your AI visibility too.

URL redirects protect your Google rankings, but what about AI search? ChatGPT, Perplexity, and Google AI Overviews are sending growing traffic to ecommerce stores. Find out if AI recommends your products or your competitors'.

Check Your AI Visibility Score →

Step 6: Post-Launch Monitoring

The work doesn't end at launch. Here's what to watch in the first 30 days:

Google Search Console coverage report. This is your early warning system. After you switch DNS to Shopify, submit your new sitemap in Search Console. Then monitor the coverage report daily. You're looking for spikes in "Not found (404)" errors. Each one is a missed redirect.

Organic traffic trends. A well-executed migration typically shows a brief dip (1-2 weeks) followed by recovery. If organic traffic drops more than 20% and doesn't start recovering within three weeks, you have redirect issues to debug.

Ranking position changes. Track your top 20 keywords daily for the first month. Individual keyword rankings may fluctuate, but you shouldn't see broad drops across all keywords. If you do, check the redirects for the specific pages that rank for those terms.

Backlink audit. Two weeks after launch, run your backlink tool again. Check that external links are following the redirects correctly. Some CDNs and security tools can interfere with 301 redirect chains. Verify the final destination is a 200 status code.

Common Mistakes That Kill Rankings

After watching dozens of Shopify migrations, these are the mistakes I see most often:

MistakeWhy It HappensSEO ImpactFix
Redirecting everything to the homepageLazy mapping or "we'll fix it later" mentalityGoogle treats it as a soft 404. No equity transfer.Map each old URL to its closest equivalent page.
Using 302 instead of 301Some apps or custom code defaults to 302Google doesn't transfer full ranking signals on 302s.Verify all migration redirects are 301.
Forgetting blog post redirectsFocus on products, ignore content pagesBlog posts often have the most backlinks on ecommerce sites.Include blog URLs in your redirect map.
Not redirecting image URLsImages aren't "pages" so they get overlookedBroken images in Google Image Search. Lost image traffic.Redirect old image directories if they drove traffic.
Launching before redirects are livePressure to ship fastEvery day without redirects creates more 404s in Google's index.Redirects go live before or simultaneously with DNS switch.
Creating redirect chains (A > B > C)Layered migrations over multiple platformsEach hop dilutes link equity and wastes crawl budget.Always redirect from original URL to final destination.

Another opinion: most migration guides tell you to prioritize product pages. I disagree. Blog posts and informational content pages often carry more backlinks and more organic traffic than individual product pages, especially for stores that have invested in content marketing. Prioritize by backlink count and organic traffic, not by page type.

Shopify's URL Structure: What You Can and Can't Change

Shopify forces a specific URL structure for each content type. You can't remove these prefixes:

  • /products/ for product pages
  • /collections/ for collection pages
  • /pages/ for custom pages
  • /blogs/[blog-name]/ for blog posts

This is a common frustration. If your old site had clean root-level URLs like /blue-widget, you can't replicate that on Shopify. The product will live at /products/blue-widget. That's fine for SEO as long as you have the redirect in place. Google doesn't care about the URL structure itself. It cares about the redirect chain being clean and the destination page being relevant.

What you can customize is the handle (the part after the prefix). When you create a product in Shopify, edit the URL handle to match your old URL as closely as possible. If your old URL was /shop/blue-widget-deluxe, set the Shopify handle to blue-widget-deluxe. The fewer changes, the simpler your redirect logic.

How Redirects Affect AI Visibility

Here's something most migration guides skip entirely: your redirect strategy affects more than just Google rankings. AI search engines like ChatGPT, Perplexity, and Google AI Overviews are now driving meaningful ecommerce traffic, and they index your site differently than traditional search.

AI systems build knowledge about your brand from multiple sources over time. When your URLs change and old references break, AI systems lose their connection to your product data. It's not exactly the same as losing Google rankings, but the effect is similar: your store becomes less visible in AI-generated recommendations.

Clean 301 redirects help AI systems follow the trail from old references to your new pages. Broken links create dead ends. If you're investing in AI visibility for your Shopify store, make sure your migration doesn't undo that work.

The same structured data principles that help with schema markup for AI search apply after a migration. Once your redirects are live and verified, re-validate your structured data on the new Shopify pages. Schema markup doesn't transfer through a redirect. It needs to exist on the destination page.

The Migration Timeline

Rushing a migration is how you end up with broken redirects and panicked late-night debugging sessions. Here's a realistic timeline:

Weeks 1-2: Audit. Crawl old site, pull Search Console data, export backlinks, build your master URL list.

Weeks 2-3: Map. Create your redirect spreadsheet. Map every old URL to its Shopify destination. Review edge cases (discontinued products, paginated pages, parameter URLs).

Week 3: Upload and test. Bulk upload redirects to Shopify. Spot-check the top 50. Run a crawl to verify all redirects are 301s pointing to the right pages.

Week 4: Launch. Switch DNS to Shopify. Submit new sitemap in Google Search Console. Start daily monitoring.

Weeks 5-8: Monitor. Track 404 errors, organic traffic, keyword rankings, and backlink status. Fix any missed redirects immediately.

Four weeks of prep for a migration that takes minutes to execute. That ratio is correct. The prep is where the SEO value is protected.

When to Consider Professional Help

Small stores (under 500 products, minimal blog content, few backlinks) can handle redirects in-house using this guide. Larger migrations get complicated fast.

Consider hiring a migration specialist if:

  • Your site has more than 10,000 indexed URLs
  • You're migrating from a heavily customized platform with non-standard URL patterns
  • Your old site has multiple redirect layers from previous migrations
  • Organic search drives more than 40% of your revenue
  • You have complex international URL structures (subdirectories or subdomains per country)

The cost of a migration specialist is a fraction of the revenue you'd lose from a botched redirect setup. Think of it as insurance, not an expense.

Whether you're handling redirects yourself or working with a specialist, understanding how your ecommerce conversion rate connects to organic traffic quality will help you prioritize which pages need the cleanest redirect paths. High-converting pages with strong organic traffic should be your top priority.

And once your migration is solid, don't neglect the emerging channel. Traditional SEO protects your Google traffic, but GEO (Generative Engine Optimization) is a parallel strategy that determines whether AI systems recommend your products. A clean migration gives you a foundation for both.

One more opinion: the Shopify ecosystem has more than enough tooling to handle migrations of any size. The platform isn't the bottleneck. Planning is. Stores that spend three weeks on their redirect spreadsheet and one hour on the actual migration don't lose rankings. Stores that do it the other way around always do.

If you want to see where your store's visibility stands across both traditional and AI search after your migration, run a quick check with our AI authority checker. It takes two minutes and gives you a baseline for both channels.

Frequently Asked Questions

How long does it take for 301 redirects to transfer SEO value in Shopify?

Google typically processes 301 redirects within days, but the full transfer of ranking signals can take 2-4 weeks. You may see temporary ranking fluctuations during that window. Pages with strong backlink profiles tend to recover faster. Monitor Google Search Console daily for the first month after migration.

Can I do a bulk URL redirect upload in Shopify?

Yes. Go to Online Store > Navigation > URL Redirects, then click Import. Upload a CSV with two columns: "Redirect from" (old path) and "Redirect to" (new path). Use relative paths starting with / for both columns. Shopify handles thousands of redirects per import.

What's the difference between a 301 and 302 redirect on Shopify?

A 301 is permanent and transfers ranking signals to the new URL. A 302 is temporary and tells Google to keep indexing the old URL. Always use 301 for migrations. Shopify's built-in redirect feature creates 301s by default.

Do I lose backlinks when migrating to Shopify?

Not if you set up 301 redirects correctly. A 301 passes the vast majority of link equity from the old URL to the new one. Use a backlink tool (Ahrefs, Semrush) to export your link profile before migration, then make sure every linked URL has a corresponding redirect.

What happens if I forget to set up redirects during migration?

Every old URL returns a 404. Google deindexes those pages, and all associated ranking signals are lost. Visitors from external links, social media, or bookmarks hit error pages. You can add redirects after the fact, but ranking damage from weeks of 404s may be partially permanent.

Does Shopify automatically create redirects when I change a product URL?

Yes, for changes made within Shopify. When you edit a product, collection, or page URL handle, a checkbox labeled "Create a URL redirect from the old URL" appears (checked by default). This creates a 301 from the old handle to the new one. But this only applies to internal URL changes, not migrations from external platforms.

Stop guessing. Start calculating.

True Margin gives ecommerce founders the tools to make data-driven decisions.

Try True Margin Free