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. Intermediate & Advanced SEO
    4. Duplicate Content http://www.website.com and http://website.com

    Duplicate Content http://www.website.com and http://website.com

    Intermediate & Advanced SEO
    6 4 683
    • 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.
    • thirdseo
      thirdseo last edited by

      I'm getting duplicate content warnings for my site because the same pages are getting crawled twice? Once with http://www.website.com and once with http://website.com. I'm assuming this is a .htaccess problem so I'll post what mine looks like.

      I think installing WordPress in the root domain changed some of the settings I had before. My main site is primarily in HTML with a blog at

      http://www.website.com/blog/post-name

      BEGIN WordPress

      <ifmodule mod_rewrite.c="">RewriteEngine On
      RewriteBase /
      RewriteRule ^index.php$ - [L]
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . /index.php [L]</ifmodule>

      END WordPress

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

        Hi

        Addin these few lines between IfModule tags should solve the problem

         <code>#redirect all requests made to http:// to http://www.
                 RewriteCond %{HTTP_HOST} ^mydomain\.com$ [NC]
                 RewriteRule ^(.*)$ http://www.mydomain.com/$1 [R=301,L]</code>
        

        Kind regards

        Bojan

        thirdseo 1 Reply Last reply Reply Quote 2
        • James77
          James77 last edited by

          You can set a preference for whether you want you domain www or not in google webmaster tools.

          I would personally not worry to much about you site showing the same content on www and root and not having a full redirect in place - SE's are smart enough to know this is a common problem (especially amongst genuine Mom & Pop sites who are not that internet savvy but have genuine sites) that they (IMO) are very unlikely to apply any penalty.

          1 Reply Last reply Reply Quote 0
          • thirdseo
            thirdseo @Yanbo last edited by

            I'm assuming replace "mydomain" with my actual domain name?

            Yanbo KeriMorgret 2 Replies Last reply Reply Quote 0
            • Yanbo
              Yanbo @thirdseo last edited by

              yup 🙂

              1 Reply Last reply Reply Quote 0
              • KeriMorgret
                KeriMorgret @thirdseo last edited by

                Hi Jonathan,

                Did this work for you, or would you still like some help:?

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • We are redirecting http and non www versions of our website. Should all versions http (non www version and www version) and https (non www version) should just have 1 redirect to the https www version?
                  BlueprintMarketing
                  BlueprintMarketing
                  0
                  8
                  437

                • Domain Authority... http://www.domain.com/ vs. http://domain.com vs. http://domain.com/
                  MattAntonino
                  MattAntonino
                  0
                  4
                  136

                • Website.com/blog/post vs website.com/post
                  PortlandGuy
                  PortlandGuy
                  0
                  12
                  220

                • Another duplicate page title www.domain.com vs www.domain.com/index.html question
                  Matt-Williamson
                  Matt-Williamson
                  0
                  2
                  405

                • Any advice for my website http://cvcsports.com?
                  EGOL
                  EGOL
                  0
                  6
                  537

                • Does having a file type on the end of a url affect rankings (example www.fourcolormagnets.com/business-cards.php VS www.fourcolormagnets.com/business-cards)????
                  loopyal
                  loopyal
                  0
                  4
                  545

                • Redirecting www.example.com to www.example.com/directory/
                  JamieCottle28
                  JamieCottle28
                  0
                  3
                  1.0k

                • What on-page/site optimization techniques can I utilize to improve this site (http://www.paradisus.com/)?
                  RyanKent
                  RyanKent
                  0
                  2
                  626

                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