Canonical solution for query strings?
-
Greetings,
The Hotel company where I'm employed uses query strings in it's url's to track customers.
The query strings are integrated into our property management system, and they help identify who we need to pay commissions to, so they aren't going anywhere.
While I understand that session variables could have been a better solution, I sort of inherited this problem.
The issue I'm running into is that my Webmaster tools picks up these query strings as actual url's.
So for instance: www.url.com/index.php?P_SOURCE=WBFQ
Seems like a duplicate page of my root, and like wise for all my other pages that use our booking widget.
So, Is there a canonical solution to this issue? or would 301/302's be the only solution.
Also, we may have 10 different but specific query strings to put into our urls. Would the 301/302 approach cause any server issues for say 10 pages? So 10 pages x 10 access codes = a lot of redirects.
Thanks in advance,
Cyril
-
Short answer Yes.( as long as you have rel Canonical them back to the original page ). Google will drop the other pages over time
Things you can do here :
- Make sure your sitemap is not listing these extra urls
Thing I recommend you DONT do
- noIndex the dynamic pages - adding a noindex could tell google not to index those pages, but some one could link back to that page with P_SOURCE=WBFQ and the main page gets no benefit from that
- ask for manual removal ( because google does not like it when we ask them To get the right "version" of your site indexedhttp://support.google.com/webmasters/bin/answer.py?hl=en&answer=1269119 )
Hope that answers you questions
-
Sweet! Glad to know I can eliminate an option.
I'll ask you the same thing I asked Thomas, will the query'd urls eventually drop off once google decides which version is best?
Thanks Saijo
-
Hi Nola504
301 redirect is certainly NOT your solution .. if you 301 redirect www.url.com/index.php?P_SOURCE=WBFQ to your homepage , that is the page visitors will be redirected to ( the ?P_SOURCE=WBFQ will be stripped off , I dont think that is what you want )
Rel canonical will tell Google , thay are all the same page with the same content and it will only show the main url that you nominate as the Canonical url ( in most cases , I have read about some study which claims at times google might decide for itself which is the better page )
Moreinfo http://support.google.com/webmasters/bin/answer.py?hl=en&answer=139394
-
Thanks for the info Thomas,
I only added the canonical tag about a month ago, do you think over time those query links will eventually die off?
-
Adding in the canonical tag for each page should solve this problem. We use query strings as well for tracking sources and referrers. Canonicals are a solid solution for what you described.
But the fact that Google is finding that URL is another problem. If Google continues to find the URL after your canonical insertion then you may want to 301 redirect that particular string.
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
-
If a URL canonically points to another link, is that URL indexed?
Hi, I have two URL both talking about keyword phrase 'counting aggregated cells' The first URL has canonical link pointing to the second URL, but if one searches for 'counting aggregated cells' both URLs are shown in the results. The first URL is the pdf, and i need only second URL (the landing page) to be shown in the search results. The canonical links should tell Google which URL to index, i don't understand why both URLs are present in search results? Is 'noindex' for the first URL only solution? I am using Yoast SEO for my website. Thank you for the answers.
Technical SEO | | Chemometec0 -
Rel canonical between mirrored domains
Hi all & happy new near! I'm new to SEO and could do with a spot of advice: I have a site that has several domains that mirror it (not good, I know...) So www.site.com, www.site.edu.sg, www.othersite.com all serve up the same content. I was planning to use rel="canonical" to avoid the duplication but I have a concern: Currently several of these mirrors rank - one, the .com ranks #1 on local google search for some useful keywords. the .edu.sg also shows up as #9 for a dirrerent page. In some cases I have multiple mirrors showing up on a specific serp. I would LIKE to rel canonical everything to the local edu.sg domain since this is most representative of the fact that the site is for a school in Singapore but...
Technical SEO | | AlexSG
-The .com is listed in DMOZ (this used to be important) and none of the volunteers there ever respoded to requests to update it to the .edu.sg
-The .com ranks higher than the com.sg page for non-local search so I am guessing google has some kind of algorithm to mark down obviosly local domains in other geographic locations Any opinions on this? Should I rel canonical the .com to the .edu.sg or vice versa? I appreciate any advice or opinion before I pull the trigger and end up shooting myself in the foot! Best regards from Singapore!0 -
Incorrect rel canonical , impacts ?
Incorrect use of canonical code.. and why have they used the strange code surrounding it. Hi there seo guys, I need some help.. a site I am working on has used the rel canonical tag incorrectly. they have used the code on the cannon page not on the duplicate pages.. there is also some other strange code with it. I will show and hide the url.. However I wanted to know if this would stop google bots crawling this page correctly as they dont seem to rank very well either.. here is the code:
Technical SEO | | ibusmedia0 -
Similar pages: noindex or rel:canonical or disregard parameters?!
Hey all! We have a hotel booking website that has search results pages per destinations (e.g. hotels in NYC is dayguest.com/nyc). Pages are also generated for destinations depending on various parameters, that can be star rating, amenities, style of the properties, etc. (e.g. dayguest.com/nyc/4stars, dayguest.com/nyc/luggagestorage, dayguest.com/nyc/luxury, etc.). In general, all of these pages are very similar, as for example, there might be 10 hotels in NYC and all of them will offer luggage storage. Pages can be nearly identical. Come the problems of duplicate content and loss of juice by dilution. I was wondering what was the best practice in such a situation: should I just put all pages except the most important ones (e.g. dayguest.com/nyc) as noindex? Or set it as canonical page for all variations? Or in google webmaster tool ask google to disregard the URLs for various parameters? Or do something else altogether?! Thanks for the help!
Technical SEO | | Philoups0 -
How to avoid automated queries to Google
We have a search engine marketing team working on different projects and we share same IP. We check our rankings manually on Google, is it sending automated queries to Google? Can it affect our sites? What solution do you suggest to check rankings without sending multiple queries to Google?
Technical SEO | | koamit0 -
Non-Canonical Pages still Indexed. Is this normal?
I have a website that contains some products and the old structure of the URL's was definitely not optimal for SEO purposes. So I created new SEO friendly URL's on my site and decided that I would use the canonical tags to transfer all the weight of the old URL's to the New URL's and ensure that the old ones would not show up in the SERP's. Problem is this has not quite worked. I implemented the canonical tags about a month ago but I am still seeing the old URL's indexed in Google and I am noticing that the cache date of these pages was only about a week ago. This leads me to believe that the spiders have been to the pages and seen the new canonical tags but are not following them. Is this normal behavior and if so, can somebody explain to me why? I know I could have just 301 redirected these old URL's to the new ones but the process I would need to go through to have that done is much more of a battle than to just add the canonical tags and I felt that the canonical tags would have done the job. Needless to say the client is not too happy right now and insists that I should have just used the 301's. In this case the client appears to be correct but I do not quite understand why my canonical tags did not work. Examples Below- Old Pages: www.awebsite.com/something/something/productid.3254235 New Pages: www.awebsite.com/something/something/keyword-rich-product-name Canonical tag on both pages: rel="canonical" href="http://www.awebsite.com/something/something/keyword-rich-product-name"/> Thanks guys for the help on this.
Technical SEO | | DRSearchEngOpt0 -
Magento Canonical Tags
Magento pages have been giving me a lot of trouble with the canonical tags. In some cases duplicate pages are showing up, so I need to add the canonical tag. In other cases I'm getting an error that there are multiple canonical tags per page. How can I get my pages canonized without duplicate tags? It seems like it's either too much or not enough, no matter what I do. Note: this only applies to category and product pages.
Technical SEO | | GravitateOnline0 -
How I implement the cross domain rel canonical?
I just watched the WBF on cross domain rel canonicals. I understand the concept, but not sure how I go about actually doing the rel canonical? If I have www.mysite.com and someone we just partnered with, www.othersite.com wants to create new pages and use my content, what will the rel canonical tag look like on www.othersite.com? Do I need to also put this tag on www.mysite.com? I want to make sure each of my pages that the other site is copying is getting the "SEO credit."
Technical SEO | | NueMD0