Keyword

'tag' pages generate duplicate content

  • mofreestyle
  • mofreestyle's Avatar Topic Author
  • Offline
  • New Member
More
3 years 8 months ago #176729 by mofreestyle
'tag' pages generate duplicate content was created by mofreestyle
Hi Guys,

I know there has been talked a lot about the subject, but I am getting duplicate content warnings on all the tag pages. (and I have a lot).

In want to use the "noindex" tag to exlude the pages from being indexed. In the tag.php I have ad:

<?php
$doc = JFactory::getDocument();
$doc->addCustomTag('<meta name="robots" content="noindex" />');
?>

But it does not work, the robots tag generated from sh404sef is not being replaced?
does anyone know why this is happening.

Thanks

Please Log in or Create an account to join the conversation.

More
3 years 8 months ago #176738 by JoomlaWorks
Replied by JoomlaWorks on topic 'tag' pages generate duplicate content
There's a better way to do this really...

Create a menu item in some hidden/unused menu in Joomla that points to all K2 categories. Give it a generic alias, e.g. "content" or "show".

Tags (and other generic types like search, date listings etc.) will now have unique URLs in the form of domain.tld/show/tag/tagNameHere so there won't be a need to deny indexing for tags in search engines.

Duplicate URLs occur due to the way Joomla component URL routers work. And this is a workaround we've built for K2.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • mofreestyle
  • mofreestyle's Avatar Topic Author
  • Offline
  • New Member
More
3 years 8 months ago #176743 by mofreestyle
Replied by mofreestyle on topic 'tag' pages generate duplicate content
My problem is not duplicate URLs, but duplicate content that hurts my SEO. Does your workaround also works for the duplicate content?

Please Log in or Create an account to join the conversation.

More
3 years 8 months ago #176746 by JoomlaWorks
Replied by JoomlaWorks on topic 'tag' pages generate duplicate content
Same thing. Duplicate URLs = duplicate content.

And yes, this will solve your issues. It's not a K2 issue per se like I said, it's more of a side-effect of how Joomla component routers work...

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • mofreestyle
  • mofreestyle's Avatar Topic Author
  • Offline
  • New Member
More
3 years 8 months ago #176750 by mofreestyle
Replied by mofreestyle on topic 'tag' pages generate duplicate content
Ohh yes I understand Fotis... I will do that. Thanks for the explanation.
I am a happy user of K2 for many many years now. Keep up the good work guys :)

Please Log in or Create an account to join the conversation.

More
3 years 8 months ago #176759 by JoomlaWorks
Replied by JoomlaWorks on topic 'tag' pages generate duplicate content
You're welcome.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum