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
-
Does "google selected canonical" pass link juice the same as "user selected canonical"?
We are in a bit of a tricky situation since a key top-level page with lots of external links has been selected as a duplicate by Google. We do not have any canonical tag in place. Now this is fine if Google passes the link juice towards the page they have selected as canonical (an identical top-level page)- does anyone know the answer to this question? Due to various reasons, we can't put a canonical tag ourselves at this moment in time. So my question is, does a Google selected canonical work the same way and pass link juice as a user selected canonical? Thanks!
Technical SEO | | Lewald10 -
Rel=Canonical for filter pages
Hi folks, I have a bit of a dilemma that I'd appreciate some advice on. We'll just use the solid wood flooring of our website as an example in this case. We use the rel=canonical tag on the solid wood flooring listings pages where the listings get sorted alphabetically, by price etc.
Technical SEO | | LukeyB30
e.g. http://www.kensyard.co.uk/products/category/solid-wood-flooring/?orderBy=highestprice uses the canonical tag to point to http://www.kensyard.co.uk/products/category/solid-wood-flooring/ as the main page. However, we also uses filters on our site which allows users to filter their search by more specific product features e.g.
http://www.kensyard.co.uk/products/category/solid-wood-flooring/f/18mm/
http://www.kensyard.co.uk/products/category/solid-wood-flooring/f/natural-lacquered/ We don't use the canonical tag on these pages because they are great long-tail keyword targeted pages so I want them to rank for phrases like "18mm solid wood flooring". But, in not using the canonical tag, I'm finding google is getting confused and ranking the wrong page as the filters mean there is a huge number of possible URLs for a given list of products. For example, Google ranks this page for the phrase "18mm solid wood flooring" http://www.kensyard.co.uk/products/category/solid-wood-flooring/f/18mm,116mm/ This is no good. This is a combination of two filters and so the listings are very refined, so if someone types the above phrase into Google and lands on this page their first reaction will be "there are not many products here". Google should be ranking the page with only the 18mm filter applied: http://www.kensyard.co.uk/products/category/solid-wood-flooring/f/18mm How would you recommend I go about rectifying this situation?
Thanks, Luke0 -
GWT Duplicate Content and Canonical Tag - Annoying
Hello everyone! I run an e-commerce site and I had some problems with duplicate meta descriptions for product pages. I implemented the rel=canonical in order to address this problem, but after more than a week the number of errors showing in google webmaster tools hasn't changed and the site has been crawled already three times since I put the rel canonical. I didn't change any description as each error regards a set of pages that are identical, same products, same descriptions just different length/colour. I am pretty sure the rel=canonical has been implemented correctly so I can't understand why I still have these errors coming up. Any suggestions? Cheers
Technical SEO | | PremioOscar0 -
Duplicate Page Titles Warnings, htaccess Rewrite & Canonical Links.
Hey guys, Just signed up for a pro account and I am getting Duplicate Page Title warnings on links that are duplicate, rewritten for SEO, but have a canonical href tag. I have two sets of links in my store: SEO friendly: http://www.mysite.com/item/iphone-case Operational link: http://www.mysite.com/shop/product.php?pid=11 This operational link however has a href canonical tag pointing to the SEO friendly link as being the primary link. My question is; Do I need to worry about this Duplicate Page Title Warning if I am using a canonical tag on the Operational link pointing to the SEO friendly link? Thanks!
Technical SEO | | jason3600 -
Pagination V Canonical
Hi Guys, I am needing some help with regards to duplicate page content issues. Using Zen Cart on an ecommerce platform and it is bringing up duplicate page content on pages. For instance:- http://www.blissfulkidsparties.com.au/store/1st-birthday-themes-barnyard-bash-1st-birthday-c-67_321/ is the same as:- http://www.blissfulkidsparties.com.au/store/1st-birthday-themes-barnyard-bash-1st-birthday-c-67_321/?sort=20a&page=1 Rel=Prev/Next as I understand it will treat http://www.blissfulkidsparties.com.au/store/1st-birthday-themes-barnyard-bash-1st-birthday-c-67_321/?sort=20a&page=1 http://www.blissfulkidsparties.com.au/store/1st-birthday-themes-barnyard-bash-1st-birthday-c-67_321/?sort=20a&page=2 http://www.blissfulkidsparties.com.au/store/1st-birthday-themes-barnyard-bash-1st-birthday-c-67_321/?sort=20a&page=3 as one page but won't solve the issue of the duplicate content issues between:- http://www.blissfulkidsparties.com.au/store/1st-birthday-themes-barnyard-bash-1st-birthday-c-67_321/ and http://www.blissfulkidsparties.com.au/store/1st-birthday-themes-barnyard-bash-1st-birthday-c-67_321/?sort=20a&page=1 am I better using rel=Canonical here instead??? Kind Regards Neil
Technical SEO | | jazzah0 -
Htaccess query
I'm currently working on a live version of a clients website which has duplication issues. With .htaccess, I need to rewrite URL's of the following format: vacancy.php?id=802 to vacancy/?id=802 I tried adding the following line but it returned a 500, and don't want to keep taking the site out. RewriteRule ^vacancy/?id=([0-9]+)$ vacancy.php?id=$1 [R=301, L]
Technical SEO | | AndrewAkesson0 -
E-commerce solution and subdomain issues
Hello All,
Technical SEO | | CherieP
In light of Wil Reynold's closing keynote at Portland's Searchfest, I thought I might try posting here to get some advice. We run a family business on the side and we're looking at starting to use volusion.com for our e-commerce solution. The catch is we currently have a wordpress site summitmining.com running on thesis with great SEO. Ranking #1 & #2 for our highest trafficked terms. Ideally, I'd like Summitmining.com to direct to the Volusion store and then summitmining.com/blog to go to our wordpress installation BUT since the volusion site will be hosted with the company and they will not host our wordpress installation we'd have to use a subdomain instead of a subdirectory which I understand will be bad for SEO. Does anyone have any recommendation on how to set this up without totally screwing up our ranking OR any recommendations of an easy to use shopping cart (I've worked on a magento site before and it's too complex for us) that wouldn't require a separate or subdomain? Thank you so much!
-Cherie Prochaska
503-816-3557
cherie@c-squaredassociates.com
@cherieprochaska0 -
Canonical URLs and screen scraping
So a little question here. I was looking into a module to help implement canonical URLs on a certain CMS and I came a cross a snarky comment about relative vs. absolute URLs being used. This person was insistent that relative URLs are fine and absolute URLs are only for people who don't know what they are doing. My question is, if using relative URLs, doesn't it make it easier to have your content scraped? After all, if you do get your content scraped at least it would point back to your site if using absolute URLs, right? Am I missing something or is my thinking OK on this? Any feedback is much appreciated!
Technical SEO | | friendlymachine0