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. One robots.txt file for multiple sites?

    One robots.txt file for multiple sites?

    Technical SEO Issues
    4 4 1.1k
    • 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.
    • renalynd27
      renalynd27 last edited by

      I have 2 sites hosted with Blue Host and was told to put the robots.txt in the root folder and just use the one robots.txt for both sites. Is this right? It seems wrong. I want to block certain things on one site.

      Thanks for the help,

      Rena

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

        Each individual website (and some subdomains if you add them) needs a unique robots.txt file. You can copy the same file and use it again and again on each site, but each one needs a robots.txt file.

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

          Hi Rena,

          You technically can do that, but it's not recommended - for the exact reason you state above. More often than not, 2 sites aren't going to have the same set of disallow rules.

          Additionally, you should also be using robots.txt files to direct search engines to your XML sitemap, and if you're sharing a robots file, then you can't specify 2 different sitemaps on 2 different domains.

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

            Hi Rena. Yes, if both sites are separate domains that you want to use in different ways, then you should place a different robots.txt file in each domain root so that they're accessible at xyz.com/robots.txt and abc.com/robots.txt.  Cheers!

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post
            • Multiple robots.txt files on server
              peakdistrictseo
              peakdistrictseo
              0
              8
              2.4k

            • One server, two domains - robots.txt allow for one domain but not other?
              LesleyPaone
              LesleyPaone
              0
              3
              551

            • Robots.txt | any SEO advantage to having one vs not having one?
              JaneCopland
              JaneCopland
              0
              4
              119

            • Meta Robots Noindex and Robots.txt File
              Devanur-Rafi
              Devanur-Rafi
              0
              2
              125

            • Is having no robots.txt file the same as having one and allowing all agents?
              ITRIX
              ITRIX
              0
              2
              697

            • Robots.txt file
              Asher
              Asher
              0
              3
              261

            • Multiple domains one site
              media-surfer
              media-surfer
              0
              9
              981

            • How ro write a robots txt file to point to your site map
              Nightwing
              Nightwing
              0
              4
              8.7k

            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