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
-
Full title in url
Hi to all, what is the best url structure, to have all words in the url or to tweak url like Yoast suggest? If we remove some words from url , not focus keyword but stop words and other keywords to have shorter url will that impact search rankings? example.com/one-because-two-for-three-on-four - long url, moz crawl error, yoast red light example.com/one-two-three-four - moz ok, yoast ok Where one is a focus keyword.
Intermediate & Advanced SEO | | WalterHalicki0 -
Are Incorrectly Set Up URL Rewrites a Possible Cause of Panda
On a .NET site, there was a url rewrite done about 2 years ago. From a visitor's perspective, it seems to be fine as the urls look clean. But, Webmaster tools reports 500 errors from time to time showing /modules/categories... and /modules/products.... which are templates and how the original urls were structured. While the developer made it look clean, I am concerned that he could have set it up incorrectly. He acknowledged that IIS 7 on a Windows server allows url rewrites to be set up, but the site was done in another way that forces the urls to change to their product name. So, he has believed it to be okay. However, the site dropped significantly in its ranking in July 2013 which appears to be a Panda penalty. In trying to figure out if this could be a factor in why the site has suffered, I would like to know other webmasters opinions. We have already killed many pages, removed 2/3 of the index that Google had, and are trying to understand what else it could be. Also, in doing a header check, I see that it shows the /modules/products... page return a 301 status. I assume that this is okay, but wanted to see what others had to say about this. When I look at the source code of a product page, I see a reference to the /modules/products... I'm not sure if any of this pertains, but wanted to mention in case you have insight. I hope to get good feedback and direction from SEOs and technical folks
Intermediate & Advanced SEO | | ABK7170 -
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 -
What are partial urls and why this is causing a sitemap error?
Hi mozzers, I have a client that recorded 7 errors when generating Xml sitemap. One of the errors appear to be coming from partial urls and apparently I would need to exclude them from sitemap. What are they exactly and why would they cause an error in the sitemap. Thanks!
Intermediate & Advanced SEO | | Ideas-Money-Art0 -
Does having a ? on the end of your URL affect your SEO?
I have some redirects that were done with at "?" at the end of the URL to include google coding (i.e. you click on an adwords link and the google coding follows the redirected link). When there is not coding to follow the link just appears as "filename.html?". Will that affect us negatively SEO-wise? Thank you.
Intermediate & Advanced SEO | | RoxBrock1 -
301 redirect help
Hey guys, I normally work in WordPress and just use a 301 redirect plugin. I bought a site and rather than maintain two similar ones have decided to redirect one to the other. I am having trouble with the .htaccess file. Here is an example. These are two redirects: redirect 301 /category/models/next/2
Intermediate & Advanced SEO | | DanDeceuster
redirect 301 /category/models I want both of these URLs to redirect to the same URL of the new site. However, the /category/models is the only one working. It redirects to the new page just fine. The /category/models/next/2 is redirecting to nearly the same URL on the new site, only it is adding /next/2 to the end and that is bringing up a 404. Why is it adding /next/2 to the new URL? How can I fix this? There are several doing this. Help appreciated!0 -
Spammy? Long URLs
Hi All: Is it true that URLs such as this following one are viewed as "spammy" (besides being too long) and that such URLs will negatively affect ranks for keywords and page ranks: http://www.repairsuniverse.com/ipod-parts-ipod-touch-replacement-repair-parts-ipod-touch-1st-gen-replacement-repair-parts.html My thinking is that the page will perform better once it is 301 redirected to a shorter page name, such as: http://www.repairsuniverse.com/ipod-touch-1G-replacement-parts.html It also appears that these long URLs are also more likely to break, creating unnecessary 404s. <colgroup><col width="301"></colgroup> Thanks for your insight on this issue!
Intermediate & Advanced SEO | | holdtheonion0 -
I have a duplicate content problem
The website guy that made the website for my business Premier Martial Arts Austin disappeared and didn't set up that www. was to begin each URL, so I now have a duplicate content problem and don't want to be penalized for it. I tried to show in Webmaster tools the preferred setup but can't get it to OK that I'm the website owner. Any idea as what to do?
Intermediate & Advanced SEO | | OhYeahSteve0