SEO Analysis Checker.com

Fix guide · Shopify

How to Fix www / non-www Issues in Shopify (2026)

Your Shopify store is accessible on both www.yourdomain.com and yourdomain.com without one redirecting to the other — or the redirect is pointing the wrong way. Shopify handles this automatically once you set a primary domain, but misconfigured DNS or third-party proxies can break the redirect.

Free · no email · no signup · results stream in ~10 seconds

Run a free check to confirm this is affecting your site

Why it matters

What this issue costs you

Having both www and non-www versions live without a redirect means Google sees two copies of your entire store, splitting link equity and causing duplicate content. One version must redirect to the other with a 301. Shopify does this for you — but only if your domain settings are correct.

Step-by-step

How to fix: www / non-www inconsistency

Shopify

  1. 1

    Set your primary domain in Shopify

    Go to Admin > Settings > Domains. You'll see your connected domains. Click "Change primary domain" and select either www.yourdomain.com or yourdomain.com (without www) as your primary. Shopify will automatically 301-redirect the other version to your primary.

  2. 2

    Verify DNS records

    For the non-www (root/apex) domain: set an A record pointing to Shopify's IP (23.227.38.65). For the www version: set a CNAME record pointing to shops.myshopify.com. Both records must exist for Shopify to handle the redirect properly. Check your domain registrar's DNS settings.

  3. 3

    Check for proxy interference

    If you use Cloudflare or another CDN in front of Shopify, the redirect may be handled there instead. In Cloudflare: go to Rules > Page Rules and ensure there isn't a conflicting redirect rule. The simplest fix is to let Shopify handle it and set Cloudflare to "DNS only" (grey cloud) for both records.

  4. 4

    Test the redirect

    After saving, test both versions: curl -I https://www.yourdomain.com and curl -I https://yourdomain.com. The non-primary version should return a 301 with a Location header pointing to the primary. Run our checker on both versions to confirm the finding is resolved.

Verify the fix

Run the checker to confirm the issue is resolved

After applying the steps above, paste your URL below. Our checker will re-run every applicable check and show whether www / non-www inconsistency still shows as a failing check.

Free · no email · no signup · results stream in ~10 seconds

FAQ

Common questions about www / non-www inconsistency

Should I use www or non-www for my Shopify store?

Either works — there's no SEO difference. The non-www (bare domain) version is more common for modern brands and is shorter. The www version has a technical edge with CNAMEs at the apex. Pick one and stick with it. Most new Shopify stores use non-www.

Shopify says my domain is connected but the redirect isn't working. Why?

Common causes: (1) DNS hasn't propagated yet (wait 24-48 hours after changes), (2) your CDN (Cloudflare, etc.) is intercepting the redirect, (3) you have conflicting redirect rules in your CDN's settings. Check each layer independently.

Will fixing this affect my existing Google rankings?

A proper 301 redirect preserves link equity. Google will consolidate the two versions into one within days. You might see a brief fluctuation in GSC data as Google re-processes, but rankings should remain stable or improve as link signals consolidate.

Need a full audit?

This checker spots individual issues instantly. deepseoanalysis.com crawls your whole site and tracks changes weekly, from $24/mo.

Deep audit →

See all WordPress fix guides, or run a free check now.