k-sync
Guias de migração
Guia de migração

Setting Up Shopify Redirects After WooCommerce Migration

How to create 301 redirects in Shopify after migrating from WooCommerce — prevent SEO traffic loss, map old /product/ URLs to /products/, and bulk import redirects via CSV.

Passos neste guia

  1. 1Understand why redirects matter
  2. 2Crawl your WooCommerce site before launch
  3. 3Map old URLs to new Shopify URLs
  4. 4Export product URL pairs from migration data
  5. 5Create the redirects CSV for Shopify
  6. 6Import redirects in Shopify admin
  7. 7Test critical redirects before launch
  8. 8Submit the new sitemap to Google Search Console

Setting up 301 redirects is one of the most critical steps in a WooCommerce to Shopify migration. Every product URL changes, and without redirects, you'll lose organic search rankings, break bookmarks, and frustrate returning customers.

WooCommerce vs Shopify URL structure

Page typeWooCommerce URLShopify URL
Product/product/product-slug//products/product-slug
Category/product-category/category-slug//collections/collection-slug
Shop (all products)/shop//collections/all
Blog post/YYYY/MM/DD/post-name//blogs/blog-name/post-name
Blog index/blog//blogs/news
Cart/cart//cart
Checkout/checkout//checkout
Account/my-account//account

The most important redirects are product URLs. For a typical store, /product/ → /products/ with the same slug covers 95% of your redirect needs. The slug (URL handle) usually stays the same unless you edited it during migration.

Redirect CSV format for Shopify

Create a CSV file with exactly these two columns:

Redirect from,Redirect to
/product/blue-widget/,/products/blue-widget
/product/red-gadget/,/products/red-gadget
/product-category/widgets/,/collections/widgets
/shop/,/collections/all

Rules: paths must start with /. Don't include your domain. Shopify automatically handles both the version with and without trailing slash for most paths.

Bulk redirect generation

If you have hundreds or thousands of products, generate the redirects programmatically. Most migration tools (including k-sync's export report) give you a CSV of product slugs. You can then generate redirect rows with a spreadsheet formula:

=CONCATENATE("/product/",A2,"/,/products/",A2)

Where A2 is the product slug. Copy down for all products. This assumes slugs are identical between WooCommerce and Shopify — verify your most important products.

After setting up redirects: verification checklist

Passo a passo

1

Understand why redirects matter

WooCommerce product URLs use /product/slug/ while Shopify uses /products/slug/. Without redirects, anyone clicking an old link (from Google, backlinks, emails, social media) will see a 404 error instead of your product. Google also needs to transfer PageRank from old URLs to new ones via 301 redirects — without them, you lose rankings.

2

Crawl your WooCommerce site before launch

Before going live on Shopify, crawl your WooCommerce site to get a complete URL list. Use Screaming Frog (free up to 500 URLs) or a site crawler of your choice. Export all URLs with status 200. You'll need: all product URLs (/product/slug/), category pages (/product-category/slug/), and any blog posts (/YEAR/MONTH/post-name/). Save this as a spreadsheet.

3

Map old URLs to new Shopify URLs

Create a mapping spreadsheet with two columns: FROM (old WooCommerce URL) and TO (new Shopify URL). For products: /product/my-widget/ → /products/my-widget/ (the slug usually matches). For categories: /product-category/widgets/ → /collections/widgets/ (if you created a matching Shopify collection). For the shop page: /shop/ → /collections/all. For blog posts that you migrated: /2024/05/my-post/ → /blogs/news/my-post.

4

Export product URL pairs from migration data

If you used a migration tool like k-sync, export the product report (CSV) to get all product handles. The handles in Shopify correspond to the URL slugs. Cross-reference with your WooCommerce product slugs. Most migrate as-is, but some may have been modified during import (e.g., handles truncated to 255 characters or sanitized to remove special characters). Verify the most important products manually.

5

Create the redirects CSV for Shopify

Shopify accepts redirect imports via CSV with exactly two columns: Redirect from, Redirect to. The path format should be relative (start with /). Example row: /product/blue-widget-xl/,/products/blue-widget-xl. Do not include your domain. Save as a .csv file with UTF-8 encoding. Shopify has a limit of 100,000 redirects per store.

6

Import redirects in Shopify admin

In your Shopify admin, go to Online Store → Navigation → URL Redirects. Click 'Import' and upload your CSV file. Shopify will validate the file and show a preview. Fix any errors (most common: duplicate redirect paths, paths starting without /, circular redirects). Confirm the import. Shopify processes the CSV and creates all redirects. Large files may take a few minutes.

7

Test critical redirects before launch

Test your 20-30 most important product URLs manually. Paste the old WooCommerce URL in a browser and confirm it redirects to the correct Shopify product page. Also test category page redirects and the shop homepage. Use a redirect checker tool (httpstatus.io or similar) to batch-check a larger sample. Fix any redirects pointing to 404 pages.

8

Submit the new sitemap to Google Search Console

After going live on Shopify, submit your Shopify sitemap (your-store.com/sitemap.xml) to Google Search Console. This helps Google re-crawl and re-index your products faster. Also use the URL Inspection tool to manually request indexing of your most important product pages. Monitor the Coverage report over the following weeks to confirm old 404 errors resolve.

Faça você mesmo com k-sync — plano gratuito disponível

k-sync automatiza todo este guia. Conecte sua loja WooCommerce, valide produtos e publique no Shopify em minutos.

Começar gratuitamente

Perguntas frequentes

How long do I need to keep redirects active?

Keep redirects permanently. There is no reason to remove them — they're lightweight and don't affect performance. Old URLs from backlinks, social shares, and email campaigns will keep working indefinitely. Removing redirects creates 404 errors for anyone using old links.

My Shopify product handles don't match my WooCommerce slugs. What happened?

Migration tools sometimes modify handles to comply with Shopify's rules: removing special characters, lowercasing, replacing spaces with hyphens, truncating to 255 characters. If your WooCommerce slug was my_widget_XL, the Shopify handle might be my-widget-xl. Check your migration report or the Shopify product list to find the actual handles and create the correct redirect mappings.

Do I need redirects for category pages?

Yes, if your category pages had PageRank (backlinks or Google rankings). WooCommerce category URLs (/product-category/slug/) differ from Shopify collection URLs (/collections/slug/). Create redirects from your old category URLs to the corresponding Shopify collection. If you didn't create Shopify collections, redirect to /collections/all or the most relevant collection.

How do I handle WooCommerce blog post URLs?

WooCommerce blogs are WordPress blogs with URL structure /YEAR/MONTH/DAY/post-name/ or /post-name/ depending on permalink settings. Shopify blog URLs use /blogs/BLOG-NAME/post-name/. If you migrated blog posts to Shopify, create redirects from the old WordPress URLs to the new Shopify blog URLs. If you didn't migrate posts, redirect to your Shopify blog index.

What about the WooCommerce /shop/ page?

The /shop/ URL (WooCommerce's main product listing page) should redirect to /collections/all in Shopify, which shows all products. If you prefer, redirect to a specific collection or your homepage. Also create a redirect for the bare /shop URL (without trailing slash) since some visitors may have this bookmarked.

Can I use Shopify's automatic redirects?

Shopify automatically creates redirects when you change a product's handle (URL) within Shopify admin. This protects existing Shopify URLs if you rename products after launch. But for the initial migration from WooCommerce, you need to set up redirects manually because Shopify doesn't know about your old WordPress URLs.

My store has 10,000 products. How do I create all those redirects?

Use the bulk import CSV method. Export product handles from your migration tool or Shopify admin, pair them with the corresponding WooCommerce slugs (usually exported from WooCommerce), and generate the CSV. This can be done with a spreadsheet VLOOKUP or a simple script. You can handle 10,000 redirects in a single CSV import.

Will redirects slow down my Shopify store?

No. Shopify processes redirects at the CDN level before the request reaches your store's theme. Even 100,000 redirects have negligible impact on performance. Shopify's CDN infrastructure handles this efficiently.

Artigos relacionados