Solving the Dreaded 404s After Your WooCommerce to Shopify Migration

Hey there, fellow store owners! Ever felt that sinking feeling when you check your Google Analytics or Search Console after a big migration, only to see a spike in '404 Not Found' errors? Or worse, a customer tells you they clicked a Google search result for your product and landed on a dead page? If you've recently made the smart move from WooCommerce to Shopify, you're definitely not alone. This is a super common hiccup, and it's exactly what our friend @jmorenobdtec.cl ran into in a recent community discussion.

It's frustrating, right? You've invested time and money in a new, shiny Shopify store, but Google is still sending traffic to your old, non-existent WooCommerce pages. The core issue, as pointed out by Mateo-Penida in the thread, is that WooCommerce and Shopify have different URL structures. For example, WooCommerce might use /product/your-product-name/ while Shopify uses /products/your-product-name. Google, being Google, still remembers those old URLs. When someone clicks them, your new Shopify store doesn't recognize them, and BAM – 404 error.

The SEO Lifeline: 301 URL Redirects

The good news is there's a clear, effective solution: 301 URL redirects. Think of a 301 redirect as a permanent change-of-address notice for your web pages. When Google or a user tries to visit an old URL, the 301 redirect automatically sends them to the correct new URL on your Shopify store. This not only fixes the broken links for your customers but, crucially, tells Google that the page has moved permanently, preserving that valuable SEO juice (link equity) you've built up over time.

How to Find Those Elusive Old URLs

This is often the trickiest part, especially if, like @jmorenobdtec.cl, you no longer have access to your old URLs or XML sitemaps. But don't despair! The community offered some excellent ways to recover them:

  1. Google Search Console (Your Best Friend): If your old WooCommerce store was connected to Google Search Console (and it really should have been!), this is your primary source. Head to the 'Pages' or 'Coverage' report. You'll see a list of all the URLs Google tried to crawl that resulted in 404 errors. This is a goldmine for your old URLs.

  2. Google Search: No Search Console? No problem. Simply go to Google and search for site:yourdomain.com (replace yourdomain.com with your actual domain). Google will show you all the pages it still has indexed for your site, including those old WooCommerce URLs that are now broken.

  3. SEO Tools: As Wsp suggested, if you have access to SEO tools like Ahrefs, SEMrush, or Screaming Frog, they can often crawl your old domain (if it's still accessible) or show you historical indexed URLs. Many of these tools have free trials, too!

  4. Wayback Machine (archive.org): This incredible tool archives old versions of websites. You can punch in your domain and browse historical snapshots of your WooCommerce store, manually collecting old URLs.

  5. Old XML Sitemap: If you happen to have a copy of your old WooCommerce XML sitemap (perhaps from a backup), that's a perfect list of all your old URLs.

Mapping Your Old URLs to New Shopify URLs

Once you've collected a comprehensive list of your old WooCommerce URLs, the next step is to create a mapping sheet. This is just a simple spreadsheet (or even a text file) where you pair each old URL with its corresponding new Shopify URL. Wsp gave a great example:

  • Old WooCommerce URL: /product/abc → New Shopify URL: /products/abc
  • Old WooCommerce URL: /category/shoes → New Shopify URL: /collections/shoes

Take your time with this step to ensure accuracy. It's crucial for correct redirection logic and maintaining your SEO value.

Implementing Redirects in Shopify

Now for the action! Shopify makes it relatively straightforward to add these 301 redirects:

  1. Log into your Shopify Admin.

  2. Go to Online StoreNavigation.

  3. Click on URL Redirects.

  4. For a few URLs: Click 'Create URL redirect'. In the 'Old URL' field, paste the old WooCommerce URL (e.g., /product/old-product-name). In the 'Redirect to' field, paste the new Shopify URL (e.g., /products/new-product-name). Then click 'Save redirect'.

  5. For many URLs (the most likely scenario!): Shopify allows you to import redirects via a CSV file. This is a huge time-saver. Your CSV should have two columns: one for the old URL path and one for the new URL path. Make sure your paths start with / (e.g., /old-url, not https://yourdomain.com/old-url). You'll find the 'Import' option right on the 'URL Redirects' page.

Don't Forget Your Sitemap!

Once your redirects are in place, there's one more important step. Shopify automatically generates a sitemap for your store at yourdomain.com/sitemap.xml. You need to tell Google about this new, correct map of your site. Go back to Google Search Console, navigate to 'Sitemaps', and submit your Shopify sitemap (usually just /sitemap.xml). You can also request indexing for your most important pages.

The Waiting Game

After all this hard work, Google needs a little time to catch up. It will crawl your old URLs, detect the 301 redirects, transfer the SEO value to your new pages, and gradually remove those pesky 404 errors from its index. This isn't an instant fix, but you should see improvements over weeks, not months.

And a quick note, as Mateo-Penida rightly mentioned: if an agency handled your migration, this whole redirection process should have been a standard part of their service. It's worth reaching out to them if you're still in contact, as it's a critical part of a successful migration. However, armed with these steps from the community, you're now empowered to tackle it yourself and ensure your store's SEO health is back on track. Keep an eye on your Search Console, and you'll be seeing those 404s disappear in no time!

Share:

Use cases

Explore use cases

Agencies, store owners, enterprise — find the migration path that fits.

Explore use cases