Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm implementing the canonical tag in my page to avoid be penalized with duplicate content flag by search engines. My doubt are the following:

  • If I have a page COPY with the canonical tag pointing to ORIGINAL, and in this ORIGINAL page I have the canonical tag pointing to ORIGINAL again, what are the consequences? The thing is, that for me is more easy to generate the tag in all pages, and not only in the copies.

  • Can i put the <link rel="canonical" href="ORIGINAL" /> in anyplace, or should be in the <head> tag.

share|improve this question

migrated from stackoverflow.com Aug 31 '11 at 14:59

This question came from our site for professional and enthusiast programmers.

2 Answers 2

up vote 5 down vote accepted

You can have a <link rel="canonical"> on the original page. There's no harm in doing so. It's just redundant but that's not a problem.

<link rel="canonical"> belongs in the <head> section only. If it is outside of the <head> it is invalid HTML and may not be honored.

share|improve this answer
    
Do you mean "invalid HTML"? –  Peter Taylor Sep 1 '11 at 8:09
    
Yes, corrected my answer –  John Conde Sep 1 '11 at 12:06

If you know all things regarding how to add canonical rel in web page please visit : http://www.google.com/support/webmasters/bin/answer.py?answer=139394

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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