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

Possible Duplicate:
Two URLs pointing to almost the same content

If I have a page, that has this url:

  • domain.com/category/something/

but can also be accessed through these urls:

  • domain.com/category/something/1
  • domain.com/category/something/2
  • domain.com/category/something/3

where the last number is used as an image-index to display a certain image on the page. So the content of the pages are the same, just with one image changed.

How do I avoid google indexing the versions with /number at the end, so it only shows up once in searches - and is not considered duplicate content?

Is it enough to put a rel="nofollow" on links to the /number links?

share|improve this question
add comment

marked as duplicate by John Conde Jun 3 '11 at 13:32

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

you have to define a canonical tag that points to:

domain.com/category/something

so that even if google looks at the other urls you mentioned, it definitely know that they belong to the main-page defined in the canonical tag.

Here is the official google blog post and the explanation for the canonical url.

BTW, putting a rel nofollow would be unnecessary dangerous since they are somehow counted too and may have a negative impact on your SEO.

share|improve this answer
    
+1 @Herr Kaleun: Welcome to SE-Webmasters! –  blunders Jun 3 '11 at 13:47
    
Thank you :) I really felt that my work was ignored when John Conde closed the post, but now i feel honored! Thank you:) –  Herr K Jun 3 '11 at 13:51
    
Yeah, I know -- it's why I said hi... :-) ...if you post the answer to the question John linked to, I'll upvote your answer there too. Cheers! –  blunders Jun 3 '11 at 13:56
add comment

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