Create a mapping between old URLs and their corresponding new Shopify URLs, then implement appropriate redirects for changed URLs. Avoid sending every old URL to the homepage when a relevant destination exists. Redirects should be tested before and after launch, and important legacy URLs should be monitored after migration.
Share
To set up redirects during a Shopify migration, create 301 URL redirects from your old website’s URLs to their corresponding new Shopify URLs. This helps customers reach the right pages and helps search engines understand that a page has permanently moved.
Steps to set up redirects
Export your old URLs: Collect URLs for products, categories, pages, and blog posts from your existing ecommerce platform.
Map old URLs to new URLs: Match each old page with its closest relevant Shopify destination. Avoid redirecting every old URL to the homepage.
Identify Shopify URL changes: Shopify uses paths such as
/products/,/collections/, and/pages/, which may differ from your old platform.Create a redirect CSV: Use two columns:
Redirect fromandRedirect to.Import redirects: In Shopify Admin, go to Content → Menus → URL redirects (or the URL redirects area in your admin), then use the import option to upload your CSV.
Test the redirects: Visit old URLs and confirm they lead to the correct new pages without redirect loops or chains.
Example redirect CSV
Redirect from
Redirect to
/old-product.html/products/new-product/category/mens-shirts/collections/mens-shirts/about-us-old/pages/about-usMigration tip
Prioritize URLs that receive organic traffic, have backlinks, or generate sales. Keep a record of redirects and monitor Google Search Console and Shopify 404 reports after launch.
Important: Redirects are for pages that have moved or been removed. Check that the destination is relevant, and update internal links and your sitemap-related settings rather than relying on redirects for every navigation path.