PLEASE HELP - Old query string URL causing problems
-
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?
-
Brilliant! good luck with it. Please do me a favour and hit the 'good answer' button thanks
-
Thanks Nigel,
This is being actioned
Hugely appreciate your time.
-
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
-
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,
-
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-trainingThis 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
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Changing URLS: from a short well optimised URL to a longer one – What's the traffic risk
I'm working with a client who has a website that is relatively well optimised, thought it has a pretty flat structure and a lot of top level pages. They've invested in their content over the years and managed to rank well for key search terms. They're currently in the process of changing CMS and as a result of new folder structuring in the CMS the URLs for some pages look to have significantly changed. E.g Existing URL is: website.com/grampians-luxury-accommodation which ranked quite well for luxury accommodation grampians New URL when site is launched on new CMS would be website.com/destinations/victoria/grampians My feeling is that the client is going to lose out on a bit of traffic as a result of this. I'm looking for information or ways or case studies to demonstrate the degree of risk, and to help make a recommendation to mitigate risk.
Intermediate & Advanced SEO | | moge0 -
Duplicate content with URLs
Hi all, Do you think that is possible to have duplicate content issues because we provide a unique image with 5 different URLs ? In the HTML code pages, just one URL is provide. It's enough for that Google don't see the other URLs or not ? Example, in this article : http://www.parismatch.com/People/Kim-Kardashian-sa-securite-n-a-pas-de-prix-1092112 The same image is available on: http://cdn-parismatch.ladmedia.fr/var/news/storage/images/paris-match/people/kim-kardashian-sa-securite-n-a-pas-de-prix-1092112/15629236-1-fre-FR/Kim-Kardashian-sa-securite-n-a-pas-de-prix.jpg http://resize-parismatch.ladmedia.fr/img/var/news/storage/images/paris-match/people/kim-kardashian-sa-securite-n-a-pas-de-prix-1092112/15629236-1-fre-FR/Kim-Kardashian-sa-securite-n-a-pas-de-prix.jpg http://resize1-parismatch.ladmedia.fr/img/var/news/storage/images/paris-match/people/kim-kardashian-sa-securite-n-a-pas-de-prix-1092112/15629236-1-fre-FR/Kim-Kardashian-sa-securite-n-a-pas-de-prix.jpg http://resize2-parismatch.ladmedia.fr/img/var/news/storage/images/paris-match/people/kim-kardashian-sa-securite-n-a-pas-de-prix-1092112/15629236-1-fre-FR/Kim-Kardashian-sa-securite-n-a-pas-de-prix.jpg http://resize3-parismatch.ladmedia.fr/img/var/news/storage/images/paris-match/people/kim-kardashian-sa-securite-n-a-pas-de-prix-1092112/15629236-1-fre-FR/Kim-Kardashian-sa-securite-n-a-pas-de-prix.jpg Thank you very much for your help. Julien
Intermediate & Advanced SEO | | Julien.Ferras0 -
Robots.txt Help
I need help to create robots.txt file. Please let me know what to add in the file. any real example or working example.?
Intermediate & Advanced SEO | | Michael.Leonard0 -
Redirect to url with parameter
I have a wiki (wiki 1) where many of the pages are well index in google. Because of a product change I had to create a new wiki (wiki 2) for the new version of my product. Now that most of my customers are using the new version of my product I like to redirect the user from wiki 1 to wiki 2. An example of a redirect could be from wiki1.website.com/how_to_build_kitchen to wiki2.website.com/how_to_build_kitchen. Because of a technical issue the url I redirect to, needs to have a parameter like "?" so the example will be wiki2.website.com/how_to_build_kitchen? Will the search engines see it as I have two pages with same content?
Intermediate & Advanced SEO | | Debitoor
wiki2.website.com/how_to_build_kitchen
and
wiki2.website.com/how_to_build_kitchen? And will the SEO juice from wiki1.website.com/how_to_build_kitchen be transfered to wiki2.website.com/how_to_build_kitchen?0 -
Will Nofollow in Nav Cause a Problem?
I have seen conflicting information regarding the use of rel=nofollow on internal links, but the gist of it seems to be that it's not a good idea. The top linked page on a particular site is a consultation page. Contact is not far behind. Both are linked from the header and footer or sidebar. At first, I thought no-following them would be the perfect solution. After what I've read, it seems I need to remove some of the instances of linking instead of nofollowing. Any e firsthand experience or feedback?
Intermediate & Advanced SEO | | kimmiedawn0 -
URL or Domain length
Hi All, I am wondering if google still does give importance to the length of the domain or url. If yes then how much is the acceptable length of a domain and URL. Many Thanks!
Intermediate & Advanced SEO | | HiteshBharucha0 -
How important is it to canonicalize mobile URLs to desktop URLs?
I know many SEO's prefer a stylesheet and single URL, but if you use m.domain.com, do you canonicalize to your desktop URLS?
Intermediate & Advanced SEO | | nicole.healthline0 -
Effect of URL change on Website
Hello we are developers and we have just created a new webpage for a client of us. The problem is that we can not replace the old one by the new one, cause our client has developed over 15 satellite pages that calls directly to the code of the old page. If we completly remove the old page we will make those 15 pages go down. Those pages are working over domains specially register for SEO reasons. For example Main page is www.euroair.es Satellite page is www.aireacondicionadodaikin.com Satellite page has pretty good ranking for search term "aire acondicionado daikin" As I told you, we have a new page but we can not make the page work over root domain. So we thought we could make it work over www.euroair.es/es, and make a redirection 301 of homepage and another important inner pages. We chose "/es" folder because it seems like a language folder, but we are not very sure of the effects of pages working on that folder instead of working on root directory. What do you think? Is this matter important or doesn't? Thanks
Intermediate & Advanced SEO | | teconsite.com0