Is this the correct way of using rel canonical, next and prev for paginated content?
-
Hello Moz fellows,
a while ago (3-4 years ago) we setup our e-commerce website category pages to apply what Google suggested to correctly handle pagination.
We added rel "canonicals", rel "next" and "prev" as follows:
On page 1:
On page 2:
On page 3:
And so on, until the last page is reached:
Do you think everything we have been doing is correct?
I have doubts on the way we have handled the canonical tag, so, any help to confirm that is very appreciated!
Thank you in advance to everyone.
-
Fantastic, thank you Paul! Those links are very useful, and I might have already read those when I setup those canonicals (I jut forgot after a few years to have worked on that!)
I'll check them out carefully again
Appreciated your help and prompt reply
All the best,
Fabrizio
-
Yup, that's exactly correct - just the way you first proposed.
And if you want it straight from the horse's mouth, here's Google's own description of implementation best practice for your exact situation:
rel="next" and rel="previous" on the one hand and rel="canonical" on the other constitute independent concepts.Both declarations can be included in the same page.
For example, http://www.example.com/article?story=abc&page=2&sessionid=123 may contain:
Note the canonical for the page is self referential to the version of the page including the basic variable that defines the actual page, leaving out the more dynamic variable of sessionID - the same way you'd want to leave out the dynamic size or colour variables, for example, which are specific to only that visit.
From https://webmasters.googleblog.com/2011/09/pagination-with-relnext-and-relprev.html
With a big whack of followup confirmation in this discussion with Google Engineer Maile Ohye https://productforums.google.com/forum/#!msg/webmasters/YbXqwoyooGM/0XTh-gIxS7YJDon't forget you can also use the tools in GSC to help GoogleBot understand which of your URL variables are indexable and which should be ignored. Only helps Google itself, but hey, every little bit counts
Good luck!
Paul
-
Thank you Paul, so, what I have been doing so far is correct, right? Here it is again, please, confirm so I can close this thread:
On page 1:
On page 2:
On page 3:
And so on, until the last page is reached:
Is this the correct way to do it then?
-
You want to have each of your paginated category pages include a self-referential canonical tag, Fabrizo, for exactly the reason you mention - to protect the paginated pages from additional variables creating more dupe indexed pages.
Paul
-
Thank you for your reply, but I am sorry Logan, I am confused, you said:
Regarding your recent question about links, a self-referring canonical on those pages will handle that.
So, if I had to follow what you said above, I should add the following canonicals on these pages:
Page 1:
http://www.mysite.com/category/
Page 2:
http://www.mysite.com/category/?cp=2
Page 3:
http://www.mysite.com/category/?cp=3
But then you said that I don't have to put any canonicals except for the first page... so, I am confused... sorry!
Fact is, all pages may have extra parameters that could cause duplicates, therefore, how can I tackle that without adding a canonical on each page pointing to the "clean" URL without extra parameters? I hope you understand what I mean...
-
No, you do not need a canonical on any page other than page=1. Refer to Andy's set of examples above. What he laid out is exactly how I markup for pagination.
-
Thank you Logan.
So, even if I am on page 4, the canonical must points always to the root? I think I read somewhere that it should point to the page URL without the extra parameters like this:
http://www.mysite.com/category/?cp=4
Am I wrong?
-
Yes, you only need the canonical tag on the root (as a self-referring canonical) and on page=1 of your paginated URLs. Regarding your recent question about links, a self-referring canonical on those pages will handle that.
Example:
On this URL- http://www.mysite.com/category/?cp=4&orderby=title&view=list
Canonicalize to-Â http://www.mysite.com/category/
Hope that's helpful!
-
I am sorry, but I haven't received an answer to my last inquiry above, I can't close this thread.
-
Another question: what about links on those pages that can take the crawl to possible duplicate because of parameters added to the URL like:
http://www.mysite.com/category/?cp=4&orderby=title
http://www.mysite.com/category/?cp=4&orderby=title&view=list
etc.? That's probably why we added the canonical I talked about above.... your thoughts?
-
Sorry, it is my understanding I have to leave the canonical just on the first page, is that correct?
Thank you again.
-
Oh, thank you Andy and Logan! So, can I remove the canonical tag altogether?
Thank you so much!
All the best,
Fabrizio
-
I'm with Logan here, Fabrizio. Rel next & prev pagination removes the need to canonical as well. So it would look like this:
Page 1:
Page 2:
Page 3:
It's Google way of understanding that there are similar pages that you wish to lead visitors to.
-Andy
-
Hi,
You don't need the self-referring canonical tags on each of the paginated URLs. Â Other than that it looks good to go.
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
-
No content using Fetch
Wooah, this one makes me feel a bit nervous. The cache version of the site homepage shows all the text, but I understand that is the html code constructed by the browser. Â So I get that. If I Google some of the content it is there in the index and the cache version is yesterday. If I Fetch and Render in GWT then none of the content is available in the preview - neither Googlebot or visitor view. Â The whole preview is just the menu, a holding image for a video and a tag line for it. Â There are no reports of blocked resources apart from a Wistia URL. Â How can I decipher what is blocking Google if it does not report any problems? The CSS is visible for reference to, for example, <section class="text-within-lines big-text narrow"> class="data"> some content... Ranking is a real issue, in part by a poorly functioning main menu. But i'm really concerned with what is happening with the render.
Intermediate & Advanced SEO | | MickEdwards0 -
Canonical Query
If Google decides to ignore your canonical and indexes numerous versions, does that count as duplicate content? We've got a large amount of canonicals ignored by Google, so I'm just trying to gauge if it's an issue or not.
Intermediate & Advanced SEO | | ThomasHarvey0 -
Correct Schema Markup
Hello, I've been having some markup issues and need some help. I researched what would be the best Business type and used that markup on the website. But when I check it in the testing tool I get this http://screencast.com/t/vtlfn2MNPKf It doesn't recognize the object type. Could this be an error with my website or the markup its self? Please advise Thanks
Intermediate & Advanced SEO | | Rank-and-Grow0 -
Rel canonical or redirect
Hi, my client has the following links pointing to the home page http://www.weddingrings.com/index.cfm http://www.weddingrings.com In this case would I use rel canonical or redirect?
Intermediate & Advanced SEO | | alexkatalkin0 -
Duplicate Content Question
Brief question - SEOMOZ is teling me that i have duplicate content on the following two pages http://www.passportsandvisas.com/visas/ and http://www.passportsandvisas.com/visas/index.asp The default page for the /visas/ directory is index.asp - so it effectively the same page - but apparently SEOMOZ and more importantly Google, etc treat these as two different pages. I read about 301 redirects etc, but in this case there aren't two physical HTML pages - so how do I fix this?
Intermediate & Advanced SEO | | santiago230 -
How to Remove Joomla Canonical and Duplicate Page Content
I've attempted to follow advice from the Q&A section. Currently on the site www.cherrycreekspine.com, I've edited the .htaccess file to help with 301s - all pages redirect to www.cherrycreekspine.com. Secondly, I'd added the canonical statement in the header of the web pages. I have cut the Duplicate Page Content in half ... now I have a remaining 40 pages to fix up. This is my practice site to try and understand what SEOmoz can do for me. I've looked at some of your videos on Youtube ... I feel like I'm scrambling around to the Q&A and the internet to understand this product. I'm reading the beginners guide.... any other resources would be helpful.
Intermediate & Advanced SEO | | deskstudio0 -
How to promote good content?
Our team just finished a massive piece of content.. very similar to the SEOmoz Begginer's Guide to SEO, but for the salon/aesthetics industry. We have a beautifully designed 10 Chapter, 50-page PDF which will require an email form submission to download. Each chapter is optimized for specific phrases, and will be separate HTML pages that are publicly available... very much like how this is setup: http://www.seomoz.org/beginners-guide-to-seo My question is, what's the best way to promote this thing? Any specific examples would be ideal. I think blogger outreach would likely be the best approach, but is there any specific way that I should be doing this?.. Again a specific start-to-finish example is what I'm looking for here. (I've read almost every outreach post on moz, so no need to reference them) Anyone care to rattle off a list of ideas with accompanying examples? (even if they seem like no-brainers.. I'm all ears)
Intermediate & Advanced SEO | | ATMOSMarketing560 -
What is the best canonical url to use for a product page?
I just helped a client redesign and launch a new website for their organic skin care company (www.hylunia.com). The site is built in Magento which by default creates MANY urls for each product. Which of these two do you think would be the best to use as the canonical version? http://www.hylunia.com/pure-hyaluronic-acid-solutionÂ
Intermediate & Advanced SEO | | danielmoss
or http://www.hylunia.com/products/face-care/facial-moisturizers/pure-hyaluronic-acid-solution ? I'm leaning on the latter, because it makes sense to me to have the breadcrumbs match the url string, and also it seems having more keywords in the url would help. However, it's obviously a very long url, and there might be some benefits to using the shorter version that I'm not aware of. Thanks in advance for sharing your thoughts. Best, Daniel0