I'm getting a little confused about adding canonical tags to pages. Some (most?) guides suggest using a link tag thusly:

<link rel="canonical" href="www.example.com/somepage" />

but some others suggest a meta tag like so:

<meta rel="canonical" href="www.example.com/somepage" />

Are both allowed? Which is right? If one is wrong, where does the confusion stem from?



The first one is correct. There is a meta tag for acknowledging the original work if you republish content but that is something else entirely.

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.