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
-
If I use content from DomainA on DomainB, but spread it - how do I implement the canoncial tag?
Hey community, I have a question regarding canonical tags.
Intermediate & Advanced SEO | | ElliPirelli
I used the content of one of my domains (nameA.com/ContentA) and copied it to another domain, but on several pages: nameB.com/ContentA1
nameB.com/ContentA2
nameB.com/ContentA3
and so on). So I divided the content from domainA to several pages of domainB. The reason is, that my client wants to build a new business on domainB and wants to use the exact same content from domainA, because he can't afford another copywriter at the moment (and he doesn't want to rewrite it himself). Problem: DomainA is ranking for this content and he wants to keep the rankings, until domainB ranks similar (for the same keywords, of course). So my question is: Can I put a canonical tag on domainA?
My thoughts are: Not a single page of domainB is 100% duplicate content, as it's always only partialy the same. Can I just choose one of those pages from domainB to put as link-goal for the canonical tag? Or do I need to create a "view-all" page on domainB, with all the content put together, so it's 100% duplicate to domainA, and then put a canonical tag to domainA and link to this "view-all" page? If I do so, do I need to also put canonicals on every single page from domainB, to link to this "view-all" page?
IMPORTANT: Would the other pages of domainB then be ranked/listed in the SERRPs, or only the "view-all" site? I would really appreciate your help, as I have been seaching for answers to this specific problem since more than a week... Thank you! Best regards0 -
Duplicate Content
Let's say a blog is publishing original content. Now let's say a second blog steals that original content via bot and publishes it as it's own. Now further assume the original blog doesn't notice this for several years. How much damage could this do to blog A for Google results? Any opinions?
Intermediate & Advanced SEO | | CYNOT0 -
Ranking without use of keywords on page & without use of matching anchor text??
Howdy folks. So, here is a dilemma. One of competitors of ours is somehow ranking for a keyphrase "houston chronicle obituaries" without any usage of these keywords on the page, without any full or partial anchor text match ("chronicle" is not used anywhere). The rest of competitiors' rankings make sense. Any ideas?
Intermediate & Advanced SEO | | DmitriiK0 -
Best use of Canonical Tag with Mini-Websites
Hello, I was wondering what the best way would be to implement Canonical Tags in kind of a unusual situation. The company I work for creates single property websites for real estate agents. We register a URL such as 123MainSt.com - however through DNS we redirect that to a path. For example: http://www.944milmadadr.com would redirect to: https://www.qwikvid.com/realestate/go/v1/home/?idx=wDg1Gdwt7wnQiR3LMeCx28qPnWTKM0JV If we wanted to rank high in the search engines for our clients: "944 Milmada Dr" - Would it be the best practice to Canonical: http://www.944milmadadr.com ? Thanks in advance for any feedback on this!! Jason
Intermediate & Advanced SEO | | Qwikvid0 -
Can I Use Multiple rel="alternate" Tags on Multiple Domains With the Same Language?
Hoping someone can answer this for me, as I have spent a ton of time researching with no luck... Is there anything misleading/wrong with using multiple rel="alternate" tags on a single webpage to reference multiple alternate versions? We currently use this tag to specify a mobile-equivalent page (mobile site served on an m. domain), but would like to expand so that we can cover another domain for desktop (possibly mobile in the future). In essence: MAIN DOMAIN would get The "Other Domain" would then use Canonical to point back to the main site. To clarify, this implementation idea is for an e-commerce site that maintains the same product line across 2 domains. One is homogeneous with furniture & home decor, which is a sub-set of products on our "main" domain that includes lighting, furniture & home decor. Any feedback or guidance is greatly appreciated! Thanks!
Intermediate & Advanced SEO | | LampsPlus0 -
Pagination, Canonical, Prev & Next
Hello All
Intermediate & Advanced SEO | | Vitalized
I have a question about my Magento setup.  I have lots of categories which have many products so the categories paginate.  I've seen info about making sure the Canonical tag doesn't simply send Search Engines back to the first page meaning the paginated pages won't get indexed.  I've also seen info about using the rel=next & rel=prev to help Search Engines understand the category pages are paginated... Is it okay to use both? I've made sure that: category/?p=1 has a canonical of category/ to make sure there isn't duplicate content. Here's an example of category/?p=2 meta data:
http://website.com/category/?p=2" />
http://website.com/category/" />
http://website.com/category/?p=3" />0 -
Blog content - what to do, and what to avoid in terms of links, when you're paying for blog content
Hi, I've just been looking at a restaurant site which is paying food writers to put food news and blogs on their website. I checked the backlink profile of the site and the various bloggers in question usually link from their blogs / company websites to the said restaurant to help promote any new blogs that appear on the restaurant site. That got me wondering about whether this might cause problems with Google. I guess they've been putting about one blog live per month for 2 years, from 12/13 bloggers who have been linking to their website. What would you advise?
Intermediate & Advanced SEO | | McTaggart0 -
Does google can read the content of one Iframe and use it for the pagerank?
Beginners doubt: When one website has its content inside Iframe's, google will read it and consider for the pagerank?
Intermediate & Advanced SEO | | Naghirniac0