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
-
How To Shorten Long URLS
Hi I want to shorten some URLs, if possible, that Moz is reporting as too long. They are all the same page but different categories - the page advertises jobs but the client requires various links to types of jobs on the menu. So the menu will have: Job type 1
Intermediate & Advanced SEO | | Ann64
Job type 2
Job Type 3 I'm getting the links by going to the page, clicking a dropdown to filter the Job type, then copying the resulting URL from the address bar. Bu these are really long & cumbersome. I presume if I used a URL shortener, this would count as redirects and alsonot be good for SEO. Any thoughts? Thanks
Ann0 -
Content Help for Dealers
What type of content would anyone recommend writing for power sports dealers (ATV dealers, Motorcycle Dealers, Jet Ski Dealers, etc) or outdoor power equipment dealers (tractors, lawn mowers, etc) when they're website consists mainly of inventory pages? These dealers are trying to improve brand awareness, but creating content that answers searchers' questions/intent is tough and I want to make sure I am on the right track. I'm trying to create unique content. I am optimizing existing pages and then so far I've been writing brand pages, describing the brands, advertising that they carry this brand, creating links and call-to-actions to the inventory pages,etc. I want to first create authority and crawlable content for this brand. From there, I have been trying to create product category pages, describing the top products under that brand and working to creating product comparison content instead of simply describing it. Why Buy type of stuff, but that gets tricky to make unique. Any suggestions on unique content or better strategies versus just brand descriptions, product descriptions/comparisons, etc? I also want to make sure that creating multiple pages focused on one brand and an overall category isn't cannibalization of a topic. Obviously each page is slightly different and gradually going into more detail, but I want to make sure. Any recommendations on types of content or different strategies would be helpful! Also - I should mention that I am limited by the platform. I cannot create/utilize a blog page or anything like that. Thanks!
Intermediate & Advanced SEO | | Crichardson19900 -
Problem with Google finding our website
We have an issue with Google finding our website: (URL removed) When we google "(keyword removed)" in google.com.au, our website doesn't come up anywhere. This is despite inserting the suitable title tag and onsite copy for SEO. We found this strange, and thought we'd investigate further. We decided to just google the website URL in google.com.au, to see if it was being properly found. Our site appeared at the top but with this description: A description for this result is not available because of this site's robots.txt – learn more. We also can see that the incorrect title tag is appearing. From this, we assumed that there must be an issue with the robot.txt file. We decided to put a new robot.txt file up: (URL removed) This hasn't solved the problem though and we still have the same issue. If someone could get to the bottom of this for us, we would be most appreciative. We are thinking that there may possibly be another robot.txt file that we can't find that is causing issues, or something else we're not sure of! We want to get to the bottom of it so that the site can be appropriately found. Any help here would be most appreciated!
Intermediate & Advanced SEO | | Gavo0 -
Blog Content In different language not indexed - HELP PLEASE!
I have an ecommerce site in English and a blog that is in Malay language. We have started the blog 3 weeks ago with about 20-30 articles written. Ecommerce is using MAgento CMS and Blog is wordpress. URL Structure: Ecommerce: www.example.com Blog: www.example.com/blog Blog category: www.example.com/blog/category/ However, google is indexing all pages including blog category but not individual post that is in Malay language. What could be the issue here? PLEASE help me!
Intermediate & Advanced SEO | | WayneRooney0 -
Switching Url
I started working with a Roofer/Contractor about a year ago. His website is http://www.lancasterparoofing.com/. The name of his business is Spicher Home Improvements. He used to have spicherhomeimprovements.com, well he still does. He was focusing on Roofing and Siding but now would like to branch to other areas like Interior remodeling. So adding interior work under LancasterPaRoofing.com is not applicable. I do not think starting another domain and having two is the best option. I think he should go back to using SpicherHomeImprovements.com and I assume he would take a small hit but in time he should be better off. Plus the url is more applicable to the real name of his business. Thanks for any feedback I receive. Chad
Intermediate & Advanced SEO | | ChadEisenhart0 -
Help me solve a keyword ranking mystery please
I posted this and had some help (thank you!) but found some new things, so I thought I'd just start a new thread so no info. is missed. Hi everyone, I'm new here 🙂 So far I've had wonderful success seo wise and none of the updates (Penguin nor Panda) affected any sites, until this one. For example, one site has 7 keywords I'm optimizing for. Out of those 7, all but 2 (and variations of the 2 - one word vs long-tail) completely tanked. These keywords were all on page 2/3. One of the two survivors never budged from page 2 (it's a brand keyword so I was very happy to finally get it to page 2) Now when I check rankings, the other terms show up in the 200-400 spots, but NOT for the URL I was optimizing for (category page) but instead for random products in the category. The only thing I've done differently with the 2 keywords that are still doing well, was focus - we did more link-building for those, but not an extreme amount. Never over-optimize. My question is, how did 2 survive and 5 are still floating up and down. Last night I saw one go up 122 spots, now today down 14. I'm really struggling with this. I just ran another diagnostic crawl here and the report found 0 errors and 0 warnings. I checked category content with a plagiarism checker and found some external duplicate content which I've already taken care of. No critical warnings/messages in WMT either. I'm stumped 😞 Thank you for any help.
Intermediate & Advanced SEO | | Freelancer130 -
Can someone please help me understand my sites recent loss of rankings?
My site has been top 3 for 'speed dating' on Google.co.uk since about 2003 and it went to below top 50 for a lot of it's main keywords shortly after 27 Oct 2012. I did a re-submission request and was told there was 'no manual spam action'. I have a Page Authority of 53, a regular blog http://bit.ly/oKyi88, a KLOUT of 40, user reviews and quality content. I did discover that another URL I using was set to a 302 instead of a 301 for some reason. I don't necessarily think this was an issue as Google should know which is the trusted URL and therefore which content to list. I removed this redirect completely about 3 weeks ago, but I've seen no improvement. I'm looking at improving various things, but I'm still not sure why I've been hit and wonder if I'm missing something obvious? Any suggestions greatly appreciated.
Intermediate & Advanced SEO | | benners0 -
Google Maps results doesn't show my site url but rather the maps url, why is this?
For several of my clients landing pages that show up in the Maps results the website url has been overwritten by the maps url (maps.google.com). Even though on my places page I have the correct website set up. Does anyone have any idea why they would be doing this and how I can correct it? Thanks kinldy in advance, Aaron. maps-url.png
Intermediate & Advanced SEO | | afranklin0