0

I posted this question: Google showing pages with ?page=2 urls and also read this post from Google: http://googlewebmastercentral.blogspot.in/2013/04/5-common-mistakes-with-relcanonical.html

I understand that node comments whether paginated or not are of low importance with respect to the node content itself. So all the paginated node pages reached by clicking links in the bottom just above "Post New Comment"( as in attachment) should have rel=canonical pointing to the main node page.

So these pages:

  • example.com/node?page=1
  • example.com/node?page=2 and so on

should have "rel=canonical" in the head section of html page pointing to example.com/node.

Though as mentioned in the Google's blog, even "rel=prev" or "rel=next" may also be desirable in case of such urls.

So I need help how to add rel=canonical in those paginated node page. How can I do it? enter image description here

  • Possible duplicate of Google showing pages with ?page=2 urls - Please edit your old questions if they was unclear, not repost. Unless it's significantly different, that is. – Mołot Oct 7 '13 at 6:58
  • In this one I'm asking about specific implementation. And in the previous I wanted to know the reason of Google indexing those URL's – user5858 Oct 7 '13 at 7:02
  • Then previous should be closed as off-topic or deleted. – Mołot Oct 7 '13 at 7:05
  • But isn’t the previous question related to Drupal? Those URL's are due to the comments. – user5858 Oct 7 '13 at 8:13
  • 1
    You should not use rel-canonical there, unless the canonical URL contains all comments. – unor Oct 8 '13 at 12:45
-1

It can be done using Nodewords module as described here:

Nodewords project allows you to add meta tags to Drupal pages, both manually and automatically based on various settings. Paying attention to meta tags, such as keywords, description and canonical URL, may help obtain better search engine positioning.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.