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 have multiple purchase pages with the same content like:

product1red.php
product2green.php

Should I block them with robots.txt ?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

No need of blocking just need to use canonical URLs.

You can consider any of the one link as canonical parent (Means original). and other one as duplicate.

You can just point one URL as its original, SEO Crawlers will identify that.

Use something like:

<link href="http://sample.com/product1red.php" rel="canonical" />

For this page:

http://sample.com/product2green.php
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.