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
-
Canonical error from Google
Moz couldn't explain this properly and I don't understand how to fix it. Google emailed this morning saying "Alternate page with proper canonical tag." Moz also kinda complains about the main URL and the main URL/index.html being duplicate. Of course they are. The main URL doesn't work without the index.html page. What am I missing? How can I fix this to eliminate this duplicate problem which to me isn't a problem?
Technical SEO | | RVForce0 -
Link rel="prev" AND canonical
Hi guys, When you have several tabs on your website with products, you can most likely navigate to page 2, 3, 4 etc...
Technical SEO | | AdenaSEO
You can add the link rel="prev" and link rel="next" tags to make sure that 1 page get's indexed / ranked by Google. am I correct? However this still means that all the pages can get indexed, right? For example a webshop makes use of the link rel="prev" and ="next" tags. In the Google results page though, all the seperate tabs pages are still visible/indexed..
http://www.domain.nl/watches/?tab=1
http://www.domain.nl/watches/?tab=24
http://www.domain.nl/watches/?tab=19
etc..... Can we prevent this, and make sure only the main page get's indexed and ranked, by adding a canonical link on every 'tab page' to the main page --> www.domain.nl/watches/ I hope I explained it well and I'm looking forward to hearing from you. Regards, Tom1 -
Rel= Canonical
Almost every one of my product has this message: Rel Canonical (Using rel=canonical suggests to search engines which URL should be seen as canonical. ) What is the best way to correct this?
Technical SEO | | tiffany11030 -
Canonicals being ignored
Hi, I've got a site that I'm working with that has 2 ways of viewing the same page - a property details page. Basically one version if the long version: /property/Edinburgh/Southside-Newington/6CN99V and the other just the short version with the code only on the end: /6cn99v There is a canonical in place from the short version to the long version, and the sitemap.xml only lists the long version HOWEVER - Google is indexing the short version in the majority of cases (not all but the majority). http://www.website.com/property/Edinburgh/Southside-Newington/6CN99V"> Obviously "www.website.com" contains the URL of the site itself. Any thoughts?
Technical SEO | | squarecat.ben0 -
Content Duplication and Canonical Tag settings
Hi all, I have a question regarding content duplication.My site has posted one fresh content in the article section and set canonical in the same page for avoiding content duplication._But another webmaster has taken my post and posted the same in his site with canonical as his site url. They have not given to original source as well._May I know how Google will consider these two pages. Which site will be affected with content duplication by Google and how can I solve this issue?If two sites put canonical tags in there own pages for the same content how the search engine will find the original site which posted fresh content. How can we avoid content duplication in this case?
Technical SEO | | zco_seo0 -
Beginner - needs to better understand rel=canonical. What is the best resource?
I'm pretty sure I have pages/posts that are competing on the same keyword and would like to fix it. What is the best beginners guide to understanding rel=canonical and how to use it to improve our SEO?
Technical SEO | | JonnyBird10 -
Notice - canonical tag
I've got several errors pointing to canonical tag, but do not know how to solve.Any help? Rel Canonical Found 6 days ago <dl> <dt>Tag value</dt> <dd>http://www.yougraph.com/</dd> <dt>Description</dt> <dd>Using rel=canonical suggests to search engines which URL should be seen as canonical.</dd> </dl> <a class="more expanded">Minimize</a>
Technical SEO | | nlopes1 -
How to set up a rel canonical in big commmerce?
I have no clue how to set this up in the Bigcommerce store platform
Technical SEO | | Firestarter-SEO0