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. Robots.txt questions...

    Robots.txt questions...

    Technical SEO Issues
    5 4 631
    • 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.
    • Horizon
      Horizon last edited by

      All,

      My site is rather complicated, but I will try to break down my question as simply as possible.

      I have a robots.txt document in the root level of my site to disallow robot access to /_system/, my CMS. This looks like this:

      # /robots.txt file for http://webcrawler.com/
      # mail webmaster@webcrawler.com for constructive criticism

      **User-agent: ***
      Disallow: /_system/

      I have another robots.txt file in another level down, which is my holiday database - www.mysite.com/holiday-database/ - this is to disallow access to /holiday-database/ControlPanel/, my database CMS. This looks like this:

      **User-agent: ***
      Disallow: /ControlPanel/

      Am I correct in thinking that this file must also be in the root level, and not in the /holiday-database/ level? If so, should my new robots.txt file look like this:

      # /robots.txt file for http://webcrawler.com/
      # mail webmaster@webcrawler.com for constructive criticism

      **User-agent: ***
      Disallow: /_system/
      Disallow: /holiday-database/ControlPanel/

      Or, like this:

      # /robots.txt file for http://webcrawler.com/
      # mail webmaster@webcrawler.com for constructive criticism

      **User-agent: ***
      Disallow: /_system/
      Disallow: /ControlPanel/

      Thanks in advance.

      Matt

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

        Hey Matt

        The first of your options looks right and google and other engines look for the robots.txt file in the site root rather than for each directory.

        If you had a reason for not wanting that info in the root robots.txt file you can always use  the robots meta tag on the pages in a given directory.

        Few useful links:

        Robots.txt
        http://www.google.com/support/webmasters/bin/answer.py?answer=156449&&hl=en

        Robots Meta Tag
        http://www.google.com/support/webmasters/bin/answer.py?answer=93710

        Hope that helps buddy

        Marcus

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

          Like:

          # /robots.txt file for http://webcrawler.com/
          # mail webmaster@webcrawler.com for constructive criticism

          **User-agent: ***
          Disallow: /_system/
          Disallow: /holiday-database/ControlPanel/

          Search engines typically only look in the root of your domain to find robots.txt and sitemap.xml files.

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

            Cheers gents.

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

              Good answer Yannick.

              here are some resources:

              http://www.free-seo-news.com/all-about-robots-txt.htm

              http://www.robotstxt.org/robotstxt.html

              Good luck

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              • First post
                Last post
              • Easy Question: regarding no index meta tag vs robot.txt
                Everett
                Everett
                0
                4
                213

              • Robots.txt
                MichaelC-15022
                MichaelC-15022
                0
                7
                1.0k

              • Robots.txt
                Dan-Lawrence
                Dan-Lawrence
                0
                5
                99

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

              • Robots.txt question
                KeriMorgret
                KeriMorgret
                0
                7
                791

              • Robots.txt
                JordanGodbey
                JordanGodbey
                0
                6
                619

              • Robots.txt file question? NEver seen this command before
                omnea
                omnea
                0
                7
                772

              • Robots.txt question
                seoug_2005
                seoug_2005
                0
                9
                908

              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