The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. Difference between www and non-www site

    Difference between www and non-www site

    Technical SEO Issues
    6 6 7.8k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Geordieromer
      Geordieromer last edited by

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • TakeshiYoung
        TakeshiYoung last edited by

        Yes, it is a problem because Google sees www and non-www versions of your sites as different subdomains.

        Putting the following code into your htaccess file should fix your problem:

        RewriteEngine On
        RewriteBase /
        RewriteCond %{HTTP_HOST} ^www.iciclecreekrealestate.com [NC]
        RewriteRule ^(.*)$ http://iciclecreekrealestate.com/$1 [L,R=301]
        
        1 Reply Last reply Reply Quote 4
        • Robin_Jennings
          Robin_Jennings last edited by

          Something as simple as what Takeshi said will help your rankings immensely.

          1 Reply Last reply Reply Quote 0
          • JordanGodbey
            JordanGodbey last edited by

            You can also go into Google WMT and set your preferred domain to be www or non-www to help them know which one you're trying to rank for.

            Here's the WMT explanation of Preferred Domains - https://support.google.com/webmasters/bin/answer.py?hl=en&answer=44231

            1 Reply Last reply Reply Quote 1
            • RossFruin
              RossFruin last edited by

              Hoping someone might have a response to my questions even though this post is fairly old. I am having a similar issue. We have both the www and non-www accounts in WMT. In both accounts we have set the preferred domain to the WWW version. Should I STILL place the code that Takeshi provided in the HTaccess file. If yes, can you explain why? Thanks!

              Cyrus-Shepard 1 Reply Last reply Reply Quote 0
              • Cyrus-Shepard
                Cyrus-Shepard @RossFruin last edited by

                Hi Ross,

                Google is pretty good today at figuring out that your site is both "www" and non-www, and they typically do a decent job of giving you credit for both versions.

                In the old days (pre-2010) this wasn't always the case, and domain authority from one subdomain didn't always transfer well between the two versions, and this also caused a ton of duplicate content issues.

                That said, it's still best practice to redirect your visitors (using 301 redirects) to one version or the other. (My first ever Whiteboard Friday touched on this issue

                By doing so, you ensure that link equity is preserved throughout your site and you eliminate the duplicate content issues that result when two subdomain both resolve. Usually, a simple .htaccess file like the one listed above will do the trick.

                1 Reply Last reply Reply Quote 1
                • 1 / 1
                • First post
                  Last post
                • Resolving 301 Redirect Chains from Different URL Versions (http, https, www, non-www)
                  0
                  1
                  38

                • Worth redirecting non-www to www due to higher page authority with www?
                  GastonRiera
                  GastonRiera
                  0
                  4
                  276

                • WWW to Non-WWW = Less Indexing?
                  BradyDCallahan
                  BradyDCallahan
                  0
                  3
                  178

                • Wondering about google site: search, and www vs non www
                  RobertFisher
                  RobertFisher
                  0
                  5
                  463

                • Which to redirect to, www or non-www?
                  Perfect007
                  Perfect007
                  0
                  3
                  169

                • Www vs non-www
                  kylesuss
                  kylesuss
                  0
                  6
                  808

                • Non-www home page indexed, but www for rest of site
                  AlanBleiweiss
                  AlanBleiweiss
                  0
                  7
                  755

                • .htaccess and www - non www
                  mikeusry
                  mikeusry
                  0
                  7
                  1.1k

                Get started with Moz Pro!

                Unlock the power of advanced SEO tools and data-driven insights.

                Start my free trial
                Products
                • Moz Pro
                • Moz Local
                • Moz API
                • Moz Data
                • STAT
                • Product Updates
                Moz Solutions
                • SMB Solutions
                • Agency Solutions
                • Enterprise Solutions
                • Digital Marketers
                Free SEO Tools
                • Domain Authority Checker
                • Link Explorer
                • Keyword Explorer
                • Competitive Research
                • Brand Authority Checker
                • Local Citation Checker
                • MozBar Extension
                • MozCast
                Resources
                • Blog
                • SEO Learning Center
                • Help Hub
                • Beginner's Guide to SEO
                • How-to Guides
                • Moz Academy
                • API Docs
                About Moz
                • About
                • Team
                • Careers
                • Contact
                Why Moz
                • Case Studies
                • Testimonials
                Get Involved
                • Become an Affiliate
                • MozCon
                • Webinars
                • Practical Marketer Series
                • MozPod
                Connect with us

                Contact the Help team

                Join our newsletter
                Moz logo
                © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                • Accessibility
                • Terms of Use
                • Privacy