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. PLEASE HELP - Old query string URL causing problems

    PLEASE HELP - Old query string URL causing problems

    Intermediate & Advanced SEO
    6 2 96
    • 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.
    • iHasco
      iHasco last edited by

      For a long time, we were ranking 1st/2nd for the term "Manual handling training". That was until about 5 days ago when I realised that Google had started to index not only a query stringed URL, but also an old version of the URL.

      What was even weirder was that when you clicked on the result it 301 redirected to the page that it was meant to display...

      The wrong URL that Google had started to index was: www.ihasco.co.uk/courses/detail/manual-handling?channel=retail

      The correct URL that it should have been indexing is: https://www.ihasco.co.uk/courses/detail/manual-handling-training

      I can't get my head around why it has done this as a 301 was in place already and we use rel canonical tags which point to the main parent pages.

      Anyway, we slapped a noindex tag in our robots.txt file to stop that page from being indexed, which worked but now I can't get the correct page to be indexed, even after a Google fetch.

      After inspecting the correct URL in the new search console I discovered that Google has ignored the rel canonical on the page (Which points to itself) and has selected the wrong, query stringed URL as the canonical. Why? and how do I rectify this?

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

        Hi iHasco

        Neither seem to rank.

        What I think

        Your sitemap has the wrong URL in it - with a trailing slash at the end: https://www.ihasco.co.uk/courses/detail/manual-handling-training/
        The website has a version without a trailing slash! https://www.ihasco.co.uk/courses/detail/manual-handling-training

        This means there are effectively two versions of this page so you have perfect duplication as both are regarded as different by Google.

        The Solution: 1. Remove the trailing slash version of the page.
        2. 301 redirect the trailing slash to the non-trailing slash in htaccess
        3. Check for other problems in the sitemap - eg you have a page https://www.ihasco.co.uk/terms-and-policies/terms-and-conditions-of-use/ in the sitemap which redirects to **https://www.ihasco.co.uk/terms-and-policies. **If there is a redirect or a canonical in place DO NOT put the original URLs in the sitemap!
        4. Put a general directive in htaccess 301'ing all trailing slashes to non-trailing slashes to avoid any further problems.
        5. For a quicker result go to Seach Console and physically remove the trailing slash version of the page. It'll be gone tomorrow. At the same time to a Fetch Google for the correct URL - you will be back at number 1-3 within a week.

        You basically have a situation where you have duplicate content, Google doesn't know which version to rank so ranks neither. You also have a problem where Google does not trust your sitemap so make sure the sitemap is a pure reflection of what is on the site. If you don't then Google will not trust your 301s or canonicals and could end up ranking other spurious pages.

        I hope that helps

        Regards

        Nigel

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

          Hi Nigel,

          Thanks for taking the time to respond.

          That's an interesting point but why would this problem only affect this URL?

          We have over 80 pages (courses) which use the same template. These pages are dynamic, so if one page is experiencing problems in Google (such as pulling an old URL) why aren't the other 79 pages doing the same?

          Also, I understand that the trailing slash could be seen as a duplicate page in Google, however, this doesn’t explain why it’s pulling an old (now redirected) URL of that page? We don’t use that old URL anywhere on our site, no even in the sitemap.

          Many thanks,

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

            Hi iHasco

            It doesn't only affect this URL. I only quickly looked at the sitemap (https://www.ihasco.co.uk/site-map/google) but found that other one as well. I don't know what the defunct page URL so have no idea why it is listing that but it (Google) is not listing the main one or the one with the slash. The fact is that both work so you need to get rid of one.

            I can't possibly explain how your dynamic system has done this I can only illustrate the problem and give you a solution. I hope you deem the solution more than just 'an interesting point'

            Regards

            Nigel

            iHasco 1 Reply Last reply Reply Quote 2
            • iHasco
              iHasco @Nigel_Carr last edited by

              Thanks Nigel,

              This is being actioned 🙂

              Hugely appreciate your time.

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

                Brilliant! good luck with it. Please do me a favour and hit the 'good answer' button thanks 🙂

                1 Reply Last reply Reply Quote 1
                • 1 / 1
                • First post
                  Last post
                • Mass URL changes and redirecting those old URLS to the new. What is SEO Risk and best practices?
                  Charles-O
                  Charles-O
                  0
                  6
                  465

                • Can some one help how to fix spam problem. please see the attached file
                  grbassi
                  grbassi
                  0
                  3
                  48

                • When the site's entire URL structure changed, should we update the inbound links built pointing to the old URLs?
                  BlueprintMarketing
                  BlueprintMarketing
                  1
                  6
                  102

                • 301 redirects broken - problems - please help!
                  CommT
                  CommT
                  0
                  3
                  69

                • Weird 404 URL Problem - domain name being placed at end of urls
                  Food-Garden
                  Food-Garden
                  0
                  8
                  3.2k

                • 301 forwarding old urls to new urls - when should you update sitemap?
                  crackingmedia
                  crackingmedia
                  0
                  4
                  2.1k

                • Using Reg Ex to 301 old categories and query strings in Magento
                  Tone_Agency
                  Tone_Agency
                  0
                  3
                  320

                • Indexed non existent pages, problem appeared after we 301d the url/index to the url.
                  ThompsonPaul
                  ThompsonPaul
                  0
                  4
                  331

                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