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. Web Design
    4. Needs clarification: How "Disallow: /" works?

    Needs clarification: How "Disallow: /" works?

    Web Design
    5 5 84
    • 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.
    • vtmoz
      vtmoz last edited by

      Hi all,

      I need clarification on this. I have noticed we have given "Disallow: /" in one of our sub-directory beside homepage. So, how it going to work now? Will this "Disallow: /" at sub-directory level going to disallow only that directory or entire website?

      If it is going to work for entire website; we have already given one more Disallow: / at homepage level blocking few folders. How it is going to handle with two Disallow: / commands?

      Thanks

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

        The directive that is literally "Disallow: /" will prevent crawling of all pages on your site, since technically, all page paths begin with a slash. Robots.txt files can only live at the root folder (subdirectory) of a site, so if you want to disallow a folder, you'll need to specify that with a directive like "Disallow: /folder-name/

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

          This post is deleted!
          1 Reply Last reply Reply Quote 1
          • anthonydnelson
            anthonydnelson last edited by

            If you have concerns, I strongly recommend using Google Search Console to test URL use cases against your existing robots.txt file and before you do potential edits.

            1 Reply Last reply Reply Quote 1
            • Christy-Correll
              Christy-Correll last edited by

              Hi vtmoz,

              You've received some great responses! Did any of them help answer your question? If so, please mark one or more as a "good answer." And if not, please let us know how we can help. Thanks!

              Christy

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • Items 30 - 50", however this is not accurate. Articles/Pages/Products counts are not close to this, products are 100+, so are the articles. We would want to either hide this or correct this.
                RossKernez
                RossKernez
                0
                2
                27

              • Is it still necessary to have a "home" page button/link in the top nav?
                FindLaw
                FindLaw
                0
                3
                570

              • Redirects Not Working / Issue with Duplicate Page Titles
                HireSpace
                HireSpace
                0
                4
                150

              • Nesting <a>tag for rel="nofollow"</a>
                MickEdwards
                MickEdwards
                0
                5
                255

              • Http://www.domain.com/services/city or http://www.domain.com/city
                Landforce
                Landforce
                1
                5
                163

              • Nav / Sitemap Question. Using a "services" page vs just linking directly to individual service page?
                WilliamCarr
                WilliamCarr
                0
                4
                174

              • Would the mobile-redirect "Panda" shield "Old Possum" work in reverse?
                0
                1
                588

              • How does the "first link" rule work with the "reasonable surfer patent" when it comes to the main navigation for a website?
                DanDeceuster
                DanDeceuster
                0
                10
                1.6k

              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