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. Duplicate Content Issue

    Duplicate Content Issue

    Technical SEO Issues
    4 3 81
    • 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.
    • OOMDODigital
      OOMDODigital last edited by

      My issue with duplicate content is this.

      There are two versions of my website showing up

      http://www.example.com/

      http://example.com/

      What are the best practices for fixing this?

      Thanks!

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

        Add this to your .htaccess

        RewriteEngine On
        RewriteCond %{HTTP_HOST} !^domain\.com
        RewriteRule (.*) http://domain.com/$1 [R=301,L]
        
        Or, you can do it in GWT.
        
        Regards
        
        John
        
        1 Reply Last reply Reply Quote 1
        • Johnny4B
          Johnny4B last edited by

          Just to add, change the details in the snippet to your sites url

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

            I agree with John. Use that .htaccess code. Apart from that, I'd also recommend that you setup your preferred way in Google Webmaster Console under Configuration > Preferred domain.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • When is Duplicate Content Duplicate Content
              AMHC
              AMHC
              0
              6
              169

            • Duplicate content or Duplicate page issue?
              Kurt_Steinbrueck
              Kurt_Steinbrueck
              0
              2
              106

            • Duplicate Content Issue
              donford
              donford
              0
              2
              257

            • Duplicate Content Issue with
              josh-riley
              josh-riley
              0
              5
              353

            • Duplicate content issue
              Ideas-Money-Art
              Ideas-Money-Art
              0
              7
              631

            • I am Posting an article on my site and another site has asked to use the same article - Is this a duplicate content issue with google if i am the creator of the content and will it penalize our sites - or one more than the other??
              Alex-Harford
              Alex-Harford
              0
              4
              524

            • Duplicate Content issue
              Hurf
              Hurf
              0
              3
              778

            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