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. Two Robots.txt files

    Two Robots.txt files

    On-Page / Site Optimization
    5 4 514
    • 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.
    • TrulyTravel
      TrulyTravel last edited by

      Hi there

      Can somebody please help me that one of my client site have two robot.txt files (please see below). One txt file is blocked few folders and another one is blocked completely all the Search engines. Our tech team telling that due to some technical reasons they using second one which placed in inside the server and search engines unable to see this file. www.example.co.uk/robots.txt - Blocked few folderswww.example.co.uk/Robots.txt - Blocked all Search Engines I hope someone can give me the help I need in this one.

      Thanks in advance!

      Cheers,
      Satla

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

        Hi,
        I don't find any good reason why there are two files. There should be just one, where you specify everything you'd like to done.
        If the tech team doesn't want to correct and leave just one file, may be because they are lazy or there might be some other issue that if they delete one file, the hole site blows up.

        Here, I leave you 2 Moz's articles about the robots.txt file.

        What is Robots.txt? - Moz Learn
        Learn About Robots.txt with Interactive Examples - Moz Blog

        Take into account that the name of the file must be in lower case. I've never seen any different and the servers are usually case sensitive with the filenames.

        Hope its helpful.

        GR

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

          Hi Satla,

          You're going to need to get rid of that 2nd version ASAP. The official standard for a robots.txt file is all lower case in the file name, so that's most likely what bots are seeing. But to err on the side of caution, I'd remove any possibilities of a "disallow: /" and remove that Robots.txt version.

          Some servers are case sensitive, so you could run into issues here as well.

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

            Hi Satia,

            You mentioned that one robots.txt file placed in inside the server and search engine unable to see the file. If search engine won't see robots.txt file then what is the use of that robots.txt file?

            AFAIK it must be placed under root directory an there is no way to keep two files with the same name. So you must have only one robots.txt and that should be placed under root directory.

            Hope this helps.

            Thanks

            1 Reply Last reply Reply Quote 0
            • TrulyTravel
              TrulyTravel @GastonRiera last edited by

              Thank Riera

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • Robots.txt Question for E-Commerce Sites
                Joe.Robison
                Joe.Robison
                0
                2
                450

              • Robot.txt file issue on wordpress site.
                AlanMosley
                AlanMosley
                0
                8
                229

              • How to exclude URL filter searches in robots.txt
                Everett
                Everett
                0
                9
                8.6k

              • Robots file include sitemap
                yeagerd
                yeagerd
                0
                2
                180

              • Site Maps / Robots.txt etc
                LockCity
                LockCity
                0
                3
                120

              • Does Google respect User-agent rules in robots.txt?
                RyanKent
                RyanKent
                0
                3
                942

              • Robots.txt: excluding URL
                john4math
                john4math
                0
                2
                821

              • The SEOmoz crawler is being blocked by robots.txt need help
                KeriMorgret
                KeriMorgret
                0
                7
                1.1k

              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