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. Should I disallow all URL query strings/parameters in Robots.txt?

    Should I disallow all URL query strings/parameters in Robots.txt?

    Intermediate & Advanced SEO
    5 3 11.2k
    • 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.
    • jmorehouse
      jmorehouse last edited by

      Webmaster Tools correctly identifies the query strings/parameters used in my URLs, but still reports duplicate title tags and meta descriptions for the original URL and the versions with parameters. For example, Webmaster Tools would report duplicates for the following URLs, despite it correctly identifying the "cat_id" and "kw" parameters:

      /Mulligan-Practitioner-CD-ROM
      /Mulligan-Practitioner-CD-ROM?cat_id=87
      /Mulligan-Practitioner-CD-ROM?kw=CROM

      Additionally, theses pages have self-referential canonical tags, so I would think I'd be covered, but I recently read that another Mozzer saw a great improvement after disallowing all query/parameter URLs, despite Webmaster Tools not reporting any errors.

      As I see it, I have two options:

      1. Manually tell Google that these parameters have no effect on page content via the URL Parameters section in Webmaster Tools (in case Google is unable to automatically detect this, and I am being penalized as a result).
      2. Add "Disallow: *?" to hide all query/parameter URLs from Google. My concern here is that most backlinks include the parameters, and in some cases these parameter URLs outrank the original.

      Any thoughts?

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

        "I recently read that another Mozzer saw a great improvement after disallowing all query/parameter URLs" - do you have a link for this?

        Canonicals should be enough but Google does mess up and the more clues you can give them, the better.

        You can also manually tell Google parameter meanings (if you check out your parameter page now in search console, you should see all of the parameters they've detected for you - you can just change their meaning).

        I don't see any harm in disallowing parameters via robots.txt. They will still be crawled and internal links followed, just not indexed in serps.

        jmorehouse 1 Reply Last reply Reply Quote 2
        • PatrickDelehanty
          PatrickDelehanty last edited by

          Hi there

          I recently answered a question in a similar question in the Q+A that references resources that can help you help Google understand these parameters and categorize them. You can read that here.

          That being said, blocking these parameters in your robots.txt will not affect your rankings, especially if those parameter or query strings are properly canonicalized to the proper product page.

          That being said, I would make sure you understand the resources above and the options, as you understand your users and website better than anyone - test on a few pages to see what happens and go from there.

          Hope this helps! Good luck!

          1 Reply Last reply Reply Quote 2
          • jmorehouse
            jmorehouse @OlegKorneitchouk last edited by

            The statement was in a response to a question I asked earlier.

            "I was having an issue like this where moz was showing a lot more duplicate content than webmaster tools was, actually webmaster tools showed none, but I was being penalized. I realized this when I added an exclusion to robots.txt to exclude any query strings on my site. After I did this I saw my rankings shoot through the roof."

            Thanks for the info. I did edit the settings in the URL parameters section to tell Google that these parameters do not change the page content, so it should now index only one representative URL. My only concern was that the kw (keyword) parameter does change page content for search result pages, but I just read that Matt Cutts encourages disallowing those pages anyway.

            Just to verify, disallowing those pages with parameters won't affect the "link juice" passed from external links?

            OlegKorneitchouk 1 Reply Last reply Reply Quote 1
            • OlegKorneitchouk
              OlegKorneitchouk @jmorehouse last edited by

              Correct. They won't be indexed but are still followed.

              1 Reply Last reply Reply Quote 2
              • 1 / 1
              • First post
                Last post
              • Robots.txt & Disallow: /*? Question!
                BabaBha0173
                BabaBha0173
                0
                8
                321

              • What does Disallow: /french-wines/?* actually do - robots.txt
                LoganRay
                LoganRay
                0
                8
                558

              • Best practice for disallowing URLS with Robots.txt
                TimHolmes
                TimHolmes
                0
                3
                650

              • 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

              • Disallow URLs ENDING with certain values in robots.txt?
                Andy.Drinkwater
                Andy.Drinkwater
                0
                4
                1.9k

              • Should /node/ URLs be 301 redirect to Clean URLs
                MargaritaS
                MargaritaS
                0
                3
                172

              • Disallow my store in robots.txt?
                AlanMosley
                AlanMosley
                0
                2
                308

              • Robots.txt disallow subdomain
                oznappies
                oznappies
                0
                7
                1.9k

              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