Set noindex tag to parameter-url

Discuss Search Engine Optimization in relation to Joomla! 2.5. This forum will also have discussions on SEF/SEO Joomla! 2.5 extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
hoseonline
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Aug 22, 2014 8:30 am

Set noindex tag to parameter-url

Post by hoseonline » Fri Aug 22, 2014 8:38 am

Hi,

I have a problem with a Virtuemart 2 Shop on Joomla 2.5

In the Google Index there are many of parameter urls, like
/?category_id=&keyword=&orderby=product_name&limit=10&pop=1&tmpl=component&start=170

or
index.php?option=com_virtuemart&page=shop.browse&category_id=11&Treeid=3&Itemid=8

or
/sef_nach,preis?___=

and so on...
In google there are over 8000 urls index, but it should just 1500 for example.


I made a robots.txt but there is no effect.

I should in the head.php of the template:

Code: Select all

$document = JFactory::getDocument();
$document->setMetaData('rights','test');
$document-> setMetaData ('robots', 'noindex, noarchive, nofollow');
The meta tag "rights" will change to test, but the robot tag will not change.

Any idea? How can i change the robot tag to noindex on sites with url parameters? for example the pageination with ?start=30

Best regards and sorry for the bad english :(

FlashRebel

Re: Set noindex tag to parameter-url

Post by FlashRebel » Sat Aug 23, 2014 2:02 am

The best way what also google recommend is put to robots.txt what you dont wanna index, it respect that.
About these parameters, check also google webmaster tool, there you can set something about that in url parameters.
Check this doc https://support.google.com/webmasters/answer/1235687

Not sure if it works, but it should, you can put to robots.txt Disallow: /*?* and it will noindex all urls with ''?'' but really not sure about that.
If do not want to disallow all, use for example /sef_nach,preis?_* or similar ....


Locked

Return to “Search Engine Optimization (Joomla! SEO) in Joomla! 2.5”