- Posts: 4
COMMUNITY FORUM
k2 generating duplicate content & hampering SERP
- Soumendra Jena
- Topic Author
- Offline
- New Member
Less
More
10 years 11 months ago #119668
by Soumendra Jena
k2 generating duplicate content & hampering SERP was created by Soumendra Jena
I was just checking my Google webmaster tools and I see, it has warned me about 120 duplicate content titles from the k2 items only.
When I checked, I see this,
d.pr/i/pPDQ
How do we stop google from indexing those print=1&tmpl=component URLs ?
Whats the code to be placed for robots.txt, so that no articles or k2 items should let google index those type of URLs.
Im using a 3rd party JA T3 template which has its own k2 template file.
But I checked that template file too and I see the rel-nofollow is perfecty intact for the print page.
Here is the code I see,
<?php if(JRequest::getInt('print')==1): ?>
<!-- Print button at the top of the print page only -->
<a class="itemPrintThisPage" rel="nofollow" href="#" onclick="window.print();return false;">
<span><?php echo JText::_('K2_PRINT_THIS_PAGE'); ?></span>
</a>
<?php endif; ?>
When I checked, I see this,
d.pr/i/pPDQ
How do we stop google from indexing those print=1&tmpl=component URLs ?
Whats the code to be placed for robots.txt, so that no articles or k2 items should let google index those type of URLs.
Im using a 3rd party JA T3 template which has its own k2 template file.
But I checked that template file too and I see the rel-nofollow is perfecty intact for the print page.
Here is the code I see,
<?php if(JRequest::getInt('print')==1): ?>
<!-- Print button at the top of the print page only -->
<a class="itemPrintThisPage" rel="nofollow" href="#" onclick="window.print();return false;">
<span><?php echo JText::_('K2_PRINT_THIS_PAGE'); ?></span>
</a>
<?php endif; ?>
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 11 months ago #119669
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Re: k2 generating duplicate content & hampering SERP
Disallow: /*?print=
I think this will do the trick
I think this will do the trick
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Soumendra Jena
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
10 years 11 months ago #119670
by Soumendra Jena
Replied by Soumendra Jena on topic Re: k2 generating duplicate content & hampering SERP
Ok I added this to robots.txt
Disallow */itemlist/tag/*
Disallow: /*/item/*.html?tmpl=component&print=1
Disallow: /?tmpl=component&type=raw
Disallow: /*?print=
Disallow */itemlist/tag/*
Disallow: /*/item/*.html?tmpl=component&print=1
Disallow: /?tmpl=component&type=raw
Disallow: /*?print=
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 11 months ago #119671
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Re: k2 generating duplicate content & hampering SERP
I wouldn't disallow tag listings in your position and I would only block the ?tmpl=component urls. I think the second and third lines are not necessary if you use this snippet.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.