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. Handling Pages with query codes

    Handling Pages with query codes

    Technical SEO Issues
    2 2 60
    • 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.
    • Marketing_Optimist
      Marketing_Optimist last edited by

      In Moz my client's site is getting loads of error messages for no follow tags on pages.

      This is down to the query codes on the E-commerce site so the URLs can look like this

      https://www.lovebombcushions.co.uk/?bskt=31d49bd1-c21a-4efa-a9d6-08322bf195af

      Clearly I just want the URL before the ? to be crawled but what can I do in the site to ensure that these errors for nofollow are removed? Is there something I should do in the site to fix this? In the back of my mind I'm thinking rel-conanical tag but I'm not sure.

      Can you help please?

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

        Hi Richard

        These are parameters that sit after the main URL and often include 'sort' 'page'.  (They can also be created in some eCommerce pages as 'products' but these should be dealt with a mod-rewrite to show properly constructed URLs with category name and title). There are a number of ways with dealing with them:

        1. Google search console - you have to be very careful messing with the rules in parameter handling but for some, this is the way.

        • 'sort' then you can tell Google that it narrows the content on the page - you can then choose to let Googlebot decide or block the URLs - I often block them as they just create skinny and duplicate content.
        • Pagination - 'page' you can tell Google that this paginates and then let Google decide. Look at rel/prev tag on those pages as well.
        • Attributes - like size and colour - I generally block those as they just create skinny duplicates of main categories
        • Others - like Catalog - it depends on what platform you use but there could be other parameters being created - I block most of them as they create useless URLs

        2. Robots.txt

        You can use this file to block the indexing of these pages depending on the parameter by excluding them from being followed by the search bots. Once again be very careful as you don't want to accidentally block indexing of useful areas the site. Your bskt page should be dealt with like this but read about all the other ones as well.

        https://moz.com/learn/seo/robotstxt

        3. Canonicals

        If you are able a great way of dealing with attributes like size and colour is to canonicalize back to the non size specific URL - this is a great way of maintaining the link juice for those URLs which may otherwise be lost if you blocked them all together. You add a rel=canonical tag pointing to the non-parameter version.

        https://moz.com/learn/seo/canonicalization

        4. As a last resort you can 301 redirect them but frankly, if you have dealt with them properly you shouldn't have to. It's also bad practice to have live 301 redirects in the internal structure of a website. Best to use the correct URL.

        There is more reading here:

        https://moz.com/community/q/which-is-the-best-way-to-handle-query-parameters
        https://moz.com/community/q/do-parameters-in-a-url-make-a-difference-from-an-seo-point-of-view
        https://moz.com/community/q/how-do-i-deindex-url-parameters

        Regards

        Nigel

        1 Reply Last reply Reply Quote 3
        • 1 / 1
        • First post
          Last post
        • Blog Page Titles - Page 1, Page 2 etc.
          Paul-Gross
          Paul-Gross
          0
          8
          549

        • I am using All-in-One-seo. I change the title and meta description on the home page, but it is not showing up on the search. It is on the source code. When I change other pages, the both show up in the search, just not the home page. Any idea why?.
          jgodwin
          jgodwin
          0
          11
          3.2k

        • Search Term not appearing in On-Page Grader but is in code?
          chrissmithps
          chrissmithps
          0
          4
          64

        • How do I handle soft 404s on category pages?
          MikeRoberts
          MikeRoberts
          0
          3
          174

        • After I 301 redirect duplicate pages to my rel=canonical page, do I need to add any tags or code to the non canonical pages?
          Mike.Goracke
          Mike.Goracke
          0
          2
          125

        • How to handle (internal) search result pages?
          Mark_Ginsberg
          Mark_Ginsberg
          0
          10
          2.3k

        • Which is The Best Way to Handle Query Parameters?
          Dr-Pete
          Dr-Pete
          0
          9
          2.1k

        • Paging Links Code - Best Way?
          AlanMosley
          AlanMosley
          0
          2
          431

        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