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 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.

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.