COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- Stop Google from indexing 'tag' pages when tags are used ?
Stop Google from indexing 'tag' pages when tags are used ?
- Daily Deals UK
- Offline
- Junior Member
Less
More
6 years 8 months ago #167130
by Daily Deals UK
Replied by Daily Deals UK on topic Stop Google from indexing 'tag' pages when tags are used ?
Hi sorry to bump an old thread but if I added the code suggested:
<?php
$doc = JFactory::getDocument();
$doc->addCustomTag('<meta name="robots" content="noindex" />');
?>
Would it stop all tags from being indexed?
I want only tags that have a menu attached to be indexed.
Thanks
<?php
$doc = JFactory::getDocument();
$doc->addCustomTag('<meta name="robots" content="noindex" />');
?>
Would it stop all tags from being indexed?
I want only tags that have a menu attached to be indexed.
Thanks
The topic has been locked.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
6 years 8 months ago #167132
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Stop Google from indexing 'tag' pages when tags are used ?
The above code is correct.
You can check the menu item's id - stackoverflow.com/questions/19005478/joomla-3-1-get-active-menu-item-url - and print the snippet you found at will.
You can check the menu item's id - stackoverflow.com/questions/19005478/joomla-3-1-get-active-menu-item-url - and print the snippet you found at will.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
The topic has been locked.
- Daily Deals UK
- Offline
- Junior Member
6 years 8 months ago #167166
by Daily Deals UK
Replied by Daily Deals UK on topic Stop Google from indexing 'tag' pages when tags are used ?
Hi Krikor
I don't understand what you mean.
Would that code stop all tags being indexed? even ones as a menu?
Basically I only want menus indexed and most of mine are made from K2 tags. But the rest of the tags I don't want indexed.
I don't understand what you mean.
Would that code stop all tags being indexed? even ones as a menu?
Basically I only want menus indexed and most of mine are made from K2 tags. But the rest of the tags I don't want indexed.
The topic has been locked.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
6 years 8 months ago #167180
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Stop Google from indexing 'tag' pages when tags are used ?
This code will tell the search engines not to include these pages.
It is up to the actual search engine to respect this code.
You can always block all bots, spiders etc and submit a sitemap of your own.
It is up to the actual search engine to respect this code.
You can always block all bots, spiders etc and submit a sitemap of your own.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
The topic has been locked.
- Claire Roach
- Offline
- New Member
Less
More
- Posts: 4
4 years 8 months ago #175036
by Claire Roach
Replied by Claire Roach on topic Stop Google from indexing 'tag' pages when tags are used ?
works
The topic has been locked.
- Forum
- K2 Community Forum
- English K2 Community
- Stop Google from indexing 'tag' pages when tags are used ?