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. Solve duplicate content issues by using robots.txt

    Solve duplicate content issues by using robots.txt

    On-Page / Site Optimization
    5 2 153
    • 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.
    • JohnHuynh
      JohnHuynh last edited by

      Hi,

      I have a primary website and beside that I also have some secondary websites with have same contents with primary website. This lead to duplicate content errors. Because of having many URL duplicate contents, so I want to use the robots.txt file to prevent google index the secondary websites to fix the duplicate content issue. Is it ok?

      Thank for any help!

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

        Why not use a cross-domain canonical whereby you reference the pages on your primary website as the canonical version on your secondary websites, thereby eliminating the duplication.

        For example on each page that is duplicate on your secondary website you would add the following to the head to reference the primary pages:

        JohnHuynh 1 Reply Last reply Reply Quote 2
        • JohnHuynh
          JohnHuynh @simon_realbuzz last edited by

          I have tried to use cross-domain canonical, but this is too difficult for me. So, I want to confirm if I use the robots.txt file is ok or not?

          Thanks

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

            Using robots.txt is perhaps not the best way of doing it. Using the canonical or a noindex meta tag would likely be best. I think the reasons for this are best summed up in this article which explains, probably better than I could, why robots.txt is not the best way of dealing with duplicate content. Hope this helps.

            JohnHuynh 1 Reply Last reply Reply Quote 1
            • JohnHuynh
              JohnHuynh @simon_realbuzz last edited by

              yes, robots.txt is the bad way, I will try to use canonical tag. Thanks for your help!

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • Duplicate content? other issues? using vendor info when selling their prodcuts?
                bakergraphix_yahoo.com
                bakergraphix_yahoo.com
                0
                4
                48

              • Do permanent redirect solve the issue of duplicate content?
                MoosaHemani
                MoosaHemani
                0
                3
                246

              • Duplicate content issues?
                HBPGroup
                HBPGroup
                0
                4
                96

              • How to solve duplicate content issue???
                DennisSeymour
                DennisSeymour
                0
                5
                115

              • Issue: Duplicate Page Content
                Everett
                Everett
                0
                6
                95

              • Best practice to solve this Unique duplicate page content issue?
                danielpett
                danielpett
                0
                5
                378

              • Duplicate Page Content Issue
                jforthofer
                jforthofer
                1
                3
                795

              • Duplicate content Issue
                KeriMorgret
                KeriMorgret
                0
                5
                985

              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