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. On-Page / Site Optimization
    4. www vs no-www duplicate which should I use

    www vs no-www duplicate which should I use

    On-Page / Site Optimization
    4 4 136
    • 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.
    • touristips
      touristips last edited by

      site is no-www

      I caught this in archives.

      Will this by my fix?

      Mike Davis Online Marketing Manager at McKesson

      • May 22, 2013

      Easy fix:

      in your .htaccess file, use this

      RewriteEngine On
      RewriteCond %{HTTP_HOST} !^domain.com
      RewriteRule (.*) http://domain.com/$1 [R=301,L]

      Remember to replace domain.com with your domain name.
      Enjoy!

      1 Reply Last reply Reply Quote 0
      • Dan-Lawrence
        Dan-Lawrence last edited by

        doesnt matter which one you go for so long as you stick with it to be consistent

        most people these days seem to be going for non www option

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

          I would go for www.  There are some technical reasons why you would want www's.

          I don't know the full reason, but the way some hosts configure their caching, and cpanel cloudflare integration you may be forced to use www's if you want to take advantage of that.  Take a popular host like Siteground for instance, if you wanted to use their supercacher and cloudflare you must use www's.

          Sorry I cannot provide clear technical reasons, as I don't fully understand it, but I have had to deal with this in the past.  Prior to running into these issues, I used to think it didn't matter and had all my sites with the non-www's.  Its not a problem on the whole, but you should be aware in a very small number of cases it might be (of course you can just avoid any problems by avoiding that particular configuration, it just might be annoying thats all).

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

            touristips

            You can use either without any negative effects whatsoever. The .htaccess above is correct for non www. Also, in GWMT go in and select a preferred domain as a backup. So, since you are using non www, go to GWMT and top right corner you will see the tools wheel. Click it and go to site settings. Then select the non www.

            This will insure all is correct.

            Best

            1 Reply Last reply Reply Quote 3
            • 1 / 1
            • First post
              Last post
            • Www and non-www
              Bryan_Loconto
              Bryan_Loconto
              0
              5
              328

            • Solve duplicate content issues by using robots.txt
              JohnHuynh
              JohnHuynh
              0
              5
              153

            • Will google regards www.example.com and www.example.com?331457 as the duplicate content?
              JonnyGreenwood
              JonnyGreenwood
              0
              9
              264

            • Dealing with thin content/95% duplicate content - canonical vs 301 vs noindex
              MiriamEllis
              MiriamEllis
              0
              4
              612

            • Too www. or not to www.?
              ClassifiedsKing
              ClassifiedsKing
              0
              4
              844

            • Is rel=canonical used only for duplicate content
              KeriMorgret
              KeriMorgret
              0
              4
              396

            • Correct use of Canonical link vs 301 redirect
              wedmonds
              wedmonds
              0
              4
              709

            • Is the www and non www isue realy seen by Google as duplicate content?
              AlanMosley
              AlanMosley
              0
              7
              1.3k

            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