Skip to content
infosoftix

Shopify 404 Errors After Migration? How to Redirect Old URLs and Keep Rankings

Moved to Shopify and now old links show 404 and Google traffic dropped? Map old URLs, bulk import 301 redirects, avoid homepage redirects and watch Search Console.

Written by Sanjoy BiswasFounder, Infosoftix · 20 years in software, 2,000+ projects

Updated

Moving a store to Shopify changes almost every address on it. Your old site may have used /shop/blue-shirt, /product-category/shirts or /product.php?id=12; Shopify uses /products/blue-shirt and /collections/shirts. Every old link in Google, in old emails, in ads and on other websites now leads to a "Page not found" unless you redirect it. The result is the familiar pattern after a migration: traffic and sales drop for weeks, and Search Console fills up with 404 errors. The fix is a proper set of 301 redirects, made carefully.

Why old links break after moving to Shopify

Why it matters

A 301 redirect tells browsers and search engines that a page has moved permanently. Google passes most of the old page's standing to the new one, and visitors land where they expected. Without it, Google eventually drops the old URLs, and the new ones start from scratch. Links from other websites, often your most valuable ones, point at nothing.

Step 1: Get the full list of old URLs

The best list combines several sources: the old site's sitemap, a crawl of the old site if it's still online, Search Console → Pages and Performance (which URLs had clicks), your analytics landing pages and any backlink report. If the old site is already gone, Search Console and analytics still remember the URLs that mattered.

Step 2: Map each old URL to its closest new page

For each old URL, pick the new page that answers the same need: product to product, category to collection, blog post to blog post, policy page to policy page. Shopify's patterns are fixed: /products/, /collections/, /pages/ and /blogs/name/. Only when a product no longer exists should you send it to its closest collection.

Fixing 404s after a Shopify migration

Step 3: Import the redirects in bulk

In Shopify, Online Store → Navigation → URL redirects lets you add redirects one by one or import a CSV with two columns, Redirect from and Redirect to. Use paths starting with a slash for the old URL. Shopify only uses a redirect when nothing exists at the old path, so a redirect from a URL that is also a live Shopify page won't fire. Old URLs with query strings, such as ?id=12, need extra care, so test each type after importing.

Step 4: Don't send everything to the homepage

Redirecting all missing pages to the homepage is tempting, but Google usually treats it like a 404 anyway (a "soft 404"), and shoppers looking for a product are confused. A relevant collection is far better than the homepage.

Step 5: Fix internal links and outside links you control

Update links in your menus, footer, product descriptions and blog posts so they point straight to the new URLs, not through redirects. Then update the links you control elsewhere: ads, email templates and automations, social profiles, marketplace listings and your Google Business Profile.

Step 6: Watch Search Console for the next few weeks

Submit your Shopify sitemap (/sitemap.xml) in Search Console. Check Pages → Not found (404) every week and add redirects for anything that still matters. A few 404s for pages that really no longer exist are normal and harmless.

Example: the traffic that came back

Example, for illustration. A store moves from WooCommerce to Shopify, and organic traffic drops by a third. Search Console lists hundreds of 404s from /product-category/ and /product/ URLs. Exporting them, mapping each to its collection or product, and importing the redirects as a CSV brings most of the traffic back over the following weeks.

What to have ready before you contact us

  • Your old domain and platform, and the migration date.
  • Access to Search Console and, if possible, the old sitemap.
  • Any redirects already created.
  • Staff or collaborator access to Shopify. Never share your password.

Haven't migrated yet? Plan redirects first

The cheapest time to handle redirects is before launch. Export the old URL list while the old site is still running, build the redirect CSV alongside the product import, and import it on the day you switch the domain. Then test twenty of the most visited old URLs by hand within the first hour. Keep product handles close to the old slugs where you can: /shop/blue-shirt becoming /products/blue-shirt is easy to map, while a renamed handle adds work for no benefit.

Images, PDFs and other files

Pages are not the only things that move. Product images on the old site often appear in Google Images, and some stores link to PDF size guides, catalogs or manuals. Upload important files to Shopify and redirect their old addresses too, or at least to the page that now holds them. Also check that your new product images have descriptive file names and alt text, so they can rank again.

Get it fixed

We audit and fix redirects after migrations as custom Shopify work at $25–$49 per hour; the time depends on how many URLs your old site had. Planning a move? Read WooCommerce to Shopify migration cost or Wix to Shopify migration, and see our Shopify development services. Book a call.

Frequently asked questions

Why do I have so many 404 errors after moving to Shopify?

Shopify uses different URL patterns, so every old product, category and page address breaks unless it's redirected.

Where are redirects in Shopify?

Online Store → Navigation → URL redirects, where you can add them one by one or import a CSV.

Should I redirect all 404s to the homepage?

No. Google usually treats that as a soft 404. Redirect to the closest relevant page instead.

Why isn't my Shopify redirect working?

Shopify only uses a redirect when nothing exists at the old path; a live page at that address takes priority.

How long until rankings recover after adding redirects?

Often a few weeks, as Google recrawls the old URLs and follows the redirects.

Do I need to keep my old domain?

Yes, if it changes. Keep the old domain pointed at Shopify so its redirects keep working.

Which old URLs matter most?

Those with clicks in Search Console, landing pages in analytics, and pages other websites link to.

How much does fixing migration redirects cost?

It's custom Shopify work at $25–$49 per hour; the time depends on the number of old URLs.

Tell us what you need

Call, WhatsApp or send a message. We reply within a few hours, Saturday to Thursday.