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. Intermediate & Advanced SEO
    4. Google robots.txt test - not picking up syntax errors?

    Google robots.txt test - not picking up syntax errors?

    Intermediate & Advanced SEO
    3 2 108
    • 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.
    • McTaggart
      McTaggart last edited by

      I just ran a robots.txt file through "Google robots.txt Tester" as there was some unusual syntax in the file that didn't make any sense to me...

      e.g. /url/?*    
      /url/?
      /url/*

      and so on. I would use ? and not ? for example and what is ? for! - etc.

      Yet "Google robots.txt Tester" did not highlight the issues...

      I then fed the sitemap through http://www.searchenginepromotionhelp.com/m/robots-text-tester/robots-checker.php and that tool actually picked up my concerns.

      Can anybody explain why Google didn't - or perhaps it isn't supposed to pick up such errors?

      Thanks, Luke

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

        Hey Luke,

        It appears that in each of the three examples, there was a plausible case for each example. Let's cover each:

        • For /url/?* , it can be expressed that a URL can offer a trailing slash and then a query string, see examples here.
        • with /url/? , this covers examples of the above and in addition, would plausibly block product pages that generate query strings, similar to this example from H&M. In essence, only allowing the product page to be seen.
        • /url/* , well, that's just anything and everything after the trailing slash.

        I guess the question you should ask yourself is "Is this the best approach for the issue?"

        McTaggart 1 Reply Last reply Reply Quote 3
        • McTaggart
          McTaggart @beaupedraza last edited by

          Many thanks Beau - much appreciated.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • If I block a URL via the robots.txt - how long will it take for Google to stop indexing that URL?
            GastonRiera
            GastonRiera
            0
            3
            98

          • Will disallowing URL's in the robots.txt file stop those URL's being indexed by Google
            Martijn_Scheijbeler
            Martijn_Scheijbeler
            0
            11
            1.6k

          • SSL and robots.txt question - confused by Google guidelines
            Daniel_Morgan
            Daniel_Morgan
            0
            3
            1.5k

          • Question about Syntax in Robots.txt
            Andy.Drinkwater
            Andy.Drinkwater
            0
            7
            154

          • How to make Google index your site? (Blocked with robots.txt for a long time)
            SanjidaKazi
            SanjidaKazi
            0
            3
            128

          • Huge increase in server errors and robots.txt
            labelPR
            labelPR
            0
            3
            154

          • Robots.txt: Syntax URL to disallow
            Anti-Alex
            Anti-Alex
            0
            8
            479

          • Robots.txt error message in Google Webmaster from a later date than the page was cached, how is that?
            eTundra
            eTundra
            0
            3
            235

          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