Back to Checklist

WWW vs Non-WWW Redirect

🎯Impact:High
⚡Difficulty:Easy
⏱️Time:15-20 min

When your Shopify store is accessible at both www.yourstore.com and yourstore.com, you're creating duplicate content that splits your SEO authority in half. Google treats these as two separate websites competing against each other, diluting your link equity and confusing search engines about which version to rank.

This guide shows you how to consolidate your store on one domain version and protect your SEO.

Why WWW vs Non-WWW Matters

Every backlink, social share, and ranking signal gets split between your www and non-www versions when both are accessible. Google doesn't know which one is "real," so it indexes both, splitting your authority and potentially showing the wrong version in search results.

IssueSEO ImpactExample
Duplicate contentAuthority split 50/50Same product on two domains
Link equity dilutionBacklinks divided100 links become 50 + 50
Indexing confusionWrong version ranksNon-www ranks when you want www
Crawl budget wastePages crawled twiceGoogle crawls both versions

When you have 1,000 backlinks but 500 point to www and 500 to non-www, you're not getting full value from any of them. Your Shopify URL structure needs to be consistent, and that starts with choosing one domain version and sticking to it.

Critical Problem: Combined with improper Shopify https configuration, www/non-www issues can create four versions of your site: http://www, https://www, http://, and https://. This quadruples your duplicate content problem.

How to Check for WWW/Non-WWW Issues

Method 1: Manual Browser Test

  1. Open your browser and type www.yourstore.com
  2. Check if it redirects or stays at www
  3. Now type yourstore.com (without www)
  4. Check if it redirects to match the first version

If both URLs load without redirecting to a single version, you have a problem. They should both redirect to the same canonical version.

Method 2: Google Site Search

  1. Go to Google and search: site:www.yourstore.com
  2. Note how many results appear
  3. Then search: site:yourstore.com (without www)
  4. Compare the results

If both searches return significant results, Google is indexing both versions as separate sites.

Method 3: Google Search Console

  1. Log into Shopify Search Console
  2. Check if you have both www and non-www properties added
  3. Review which version has more indexed pages
  4. Check for duplicate content warnings

Method 4: Screaming Frog Audit

  1. Download Screaming Frog SEO Spider
  2. Crawl both www.yourstore.com and yourstore.com
  3. Compare the Internal tab results
  4. Look for identical pages on both versions

Pro Tip: Check your Shopify sitemap to see which version is listed. Your sitemap should only contain one version—never both.

How to Fix WWW vs Non-WWW Issues

Step 1: Choose Your Preferred Domain

Decide whether you want www or non-www as your canonical version. Consider:

Brand consistency: Which version do you use in marketing materials? Existing backlinks: Which version has more inbound links? User expectations: Does your industry typically use www or not?

Most modern brands prefer non-www for cleaner URLs, but there's no inherent SEO advantage to either. Pick one and commit.

Step 2: Update Shopify Domain Settings

  1. Log into your Shopify Admin
  2. Navigate to Settings > Domains
  3. Find your primary domain in the list
  4. Look for Primary domain designation
  5. If needed, click Change primary domain
  6. Select your preferred version (www or non-www)
  7. Save changes

Shopify automatically implements 301 redirects from the non-preferred version to your chosen version. This is the crucial step that consolidates your authority.

Step 3: Verify HTTPS Works Correctly

Your Shopify https setup must work with your chosen domain version. Test both:

  • https://www.yourstore.com → should redirect to preferred version
  • https://yourstore.com → should redirect to preferred version

Both should end up at the same final URL with proper convert 302 to 301 redirect status.

Step 4: Update Canonical Tags

Your Shopify canonical tags must point to your preferred domain version on every page. Check your theme's canonical implementation:

  1. Go to Online Store > Themes > Actions > Edit Code
  2. Open theme.liquid
  3. Find the canonical tag (usually in the <head> section)
  4. Verify it uses your preferred domain version

Step 5: Update Search Console

  1. Log into Shopify Search Console
  2. Add both www and non-www versions as properties (if not already added)
  3. Submit your sitemap to the preferred version only
  4. Set domain preference in Search Console settings (if available)

If you're switching from one version to another, use the Change of Address tool in Search Console to inform Google of the permanent move.

Step 6: Check Redirect Implementation

Use Screaming Frog or online redirect checkers to verify:

  1. Non-preferred version returns 301 Permanent Redirect
  2. Redirect points to preferred version with Shopify https
  3. No redirect chains exist (multiple hops to reach final URL)
  4. All pages redirect, not just the homepage

Monitor Your Consolidation

After implementing redirects, track the consolidation:

Week 1-2: Use site: searches to monitor both versions. The non-preferred should start disappearing.

Week 3-4: Check Search Console for indexed page counts. Preferred version should increase as non-preferred decreases.

Month 2-3: Verify all authority has consolidated. Rankings for preferred version should improve as duplicate content resolves.

Ongoing: Set quarterly reminders to verify redirects still work after theme updates or app installations.

Most stores see ranking improvements within 60-90 days as Google consolidates all authority onto one domain version. Your backlinks finally count at full strength instead of being split across two versions.

Update Internal and External Links

While redirects handle technical consolidation, update actual links where possible:

Internal Links: Ensure all navigation, footer, and content links use your preferred version.

External Links: Contact sites linking to non-preferred version and request updates (optional but helpful).

Marketing Materials: Use only your preferred version in emails, social media, and advertising.

Proper www/non-www consolidation is foundational SEO. Get this right once, and you'll never worry about splitting your authority again.

Related Guides

Shopify store traffic stuck? You're not alone.

We help Shopify stores rank higher in Google, attract quality traffic, and turn visitors into customers.

🚀 Trusted by 500+ Shopify merchants