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. Root domain not resolving to www. Duplicate content?

    Root domain not resolving to www. Duplicate content?

    Technical SEO Issues
    9 5 1.4k
    • 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.
    • HardyIntl
      HardyIntl last edited by

      Hi,

      I'm working with a domain that stays on the root domain if the www is not included.

      But if the www is included, it stays with the www.

      LIke this:

      example.com
      or
      www.example.com

      Of course, they are identical and both go to the same IP.

      Do search engines consider that to be duplicate content?

      thanks,
      michael

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

        Yes, be careful with this.

        Modify the .htaccess and redirect the example.com page to the www.example.com page.

        More information: http://www.seomoz.org/learn-seo/redirection

        Bye!

        1 Reply Last reply Reply Quote 2
        • KeriMorgret
          KeriMorgret last edited by

          Hi Michael,

          Let us know if you have questions about how to implement this. You will want to chose one version of your site, either www or non-www, and stick with that. Using Open Site Explorer to see whether www or non-www has the most backlinks can help with this decision.

          Usually you do use an htaccess file to set this up, but sometimes you're on IIS or you don't have access to that file and need to work around it. If this is your case, let us know and we'll give you some help.

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

            The most important and easiest step is to use Google Webmaster Tools. Go to Site Configuration, then Settings and set the Preferred Domain to either www or non-www.

            Google:
            "The preferred domain is the one that you would like used to index your site's pages. If you specify your preferred domain as http://www.example.com and we find a link to your site that is formatted as http://example.com, we'll treat that link as if it was http://www.example.com."

            If you have access to .htaccess and not afraid to use it, then the following will help:

            RewriteEngine on
            RewriteCond %{HTTP_HOST} ^yourdomain.com [NC]
            RewriteRule (.) http://www.yourdomain.com/$1 [L,R=301]
            RewriteCond %{THE_REQUEST} ^.
            /index.html
            RewriteRule ^(.*)index.html$ http://www.yourdomain.com.au/$1 [R=301,L]

            This redirects the non-www domain to the www version, and also redirects the index.html to the www version. Edit accordingly..

            KeriMorgret HardyIntl 2 Replies Last reply Reply Quote 2
            • KeriMorgret
              KeriMorgret @Gyorgy last edited by

              Using GWT is easy and a great help, but it doesn't affect the site itself when people come to the site from something other than Google, nor does it help the other search engines.

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

                Sometimes the webhosting company has a feature for this. I have this as an option in dreamhost.com when I am setting up hosting for a specific domain.

                Leave it alone: Both http://www.compatibletonercartridge.net/ and http://compatibletonercartridge.net/ will work.
                <label class="innerlabel">Add WWW: Make http://compatibletonercartridge.net/ redirect to http://www.compatibletonercartridge.net/</label>
                <label class="innerlabel">Remove WWW: Make http://www.compatibletonercartridge.net/ redirect to http://compatibletonercartridge.net/</label>

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

                  Hey thanks everyone. Good info all around.

                  My client is hosting the site with a datarooms host, so I don't have access to the server settings. Tech support there seems clueless and "doesn't see a problem." I tried the DNS settings to no avail.

                  Is the only way to resolve this to get the dataroom host to modify htaccess?

                  thanks,
                  michael

                  1 Reply Last reply Reply Quote 0
                  • HardyIntl
                    HardyIntl @Gyorgy last edited by

                    Hey thanks Gyorgy. I'm going to try your fix.

                    I'm wondering about the .com.au/$1 segment.

                    Should that .au remain there, is that australia?

                    Much obliged,
                    michael

                    Gyorgy 1 Reply Last reply Reply Quote 0
                    • Gyorgy
                      Gyorgy @HardyIntl last edited by

                      Sorry, I forgot to remove the .au 🙂

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post
                      • Duplicate Page Content for www and non-www. Help!
                        Andy.Drinkwater
                        Andy.Drinkwater
                        0
                        7
                        486

                      • When is Duplicate Content Duplicate Content
                        AMHC
                        AMHC
                        0
                        6
                        169

                      • Duplicate Content Issue WWW and Non WWW
                        TheeDigital
                        TheeDigital
                        1
                        3
                        1.6k

                      • I have a sub domain that has live content on it but the root domain redirects to another URL. I know this is not great but what are the implications?
                        mjsikorsky
                        mjsikorsky
                        0
                        3
                        96

                      • Link building to ROOT domain OR to WWW.?
                        SEOisSEO
                        SEOisSEO
                        0
                        7
                        167

                      • To 301 redirect or not to 301 redirect? duplicate content problem www.domain.com and www.domain.com/en/
                        Chris-CA
                        Chris-CA
                        0
                        5
                        456

                      • How do i deal with duplicate content on the same domain?
                        asimahme
                        asimahme
                        0
                        7
                        721

                      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