301 Redirects for Ecommerce: When and How to Use Them

2 min read

Redirects are how you tell Google 'this page moved permanently to a new URL.' Get them right and you preserve your rankings through URL changes. Get them wrong and you lose traffic, create redirect chains, or break your site's internal linking.

When You Need 301 Redirects

You need a 301 redirect whenever you change a URL that might have traffic, links, or search rankings: - **Product URL changes** — renamed a product or changed its handle/slug - **Collection restructuring** — merged, split, or renamed collections/categories - **Site migration** — moved from one domain to another, or from HTTP to HTTPS - **Deleted pages** — removed a product but the URL still gets traffic or has backlinks - **Platform migration** — moving from Shopify to WooCommerce (or vice versa) changes all URLs Without a redirect, visitors and Google get a 404 error — you lose the traffic and any ranking power that URL had built up.

301 vs 302 Redirects

**301 (Permanent):** Use this 95% of the time. Tells Google the change is permanent and to transfer ranking power to the new URL. Google will eventually replace the old URL with the new one in search results. **302 (Temporary):** Use only when the change is truly temporary — like a seasonal sale page that will return to its original content. Google keeps the old URL in the index and doesn't transfer full ranking power. Common mistake: using 302 redirects when you mean 301. This prevents Google from transferring ranking power and keeps the old URL in the index.

How to Set Up Redirects

**Shopify:** Go to Settings → Navigation → URL Redirects → Create URL redirect. Enter the old path and new path. Shopify handles the 301 status code automatically. **WooCommerce:** Use the Yoast SEO Premium redirect manager, or install a free plugin like 'Redirection.' For bulk redirects during migration, use the plugin's CSV import feature. For both platforms: keep a spreadsheet of all redirects you create. This becomes invaluable during site audits and future migrations.

Common Redirect Mistakes

**Redirect chains:** Page A → Page B → Page C. Each hop loses a small amount of ranking power and adds load time. Always redirect to the final destination URL. **Redirect loops:** Page A → Page B → Page A. This creates an infinite loop that returns an error. Always verify redirects after creating them. **Not redirecting deleted products:** When you remove a product, redirect its URL to the most relevant collection page — not the homepage. This preserves the topical relevance of any backlinks. **Too many redirects:** If you have thousands of redirects, it can slow down your server. Periodically clean up redirects where the old URL gets zero traffic. RankRipper detects redirect chains and loops on every scan and alerts you when new ones appear.

buildRelated Fix Guides

Keep Reading

Check your store now

Scan your site for free — get copy-paste fixes in 60 seconds.

searchScan Now — It's Free