Skip to main content

Price selection min/max

More
11 years 5 months ago #1288 by godfather
hi,
how could set the robots for the price selections to noindex ?

mysite.com/example1/11-50.html
mysite.com/example2/10-50/100.html

cuz google are indexing them and he is seting titles for this his own !! and custumizing the titles for evrey selectin would take unendless work.
thank u

Please Log in to join the conversation.

More
11 years 5 months ago - 11 years 4 months ago #1292 by redactie
in your ( component ) layout try
Code:
if ( JRequest::getVar('q10','') || Request::getVar('q11','') ) { $document =JFactory::getDocument(); $document->setMetaData('googlebot','noindex,nofollow'); }
Last edit: 11 years 4 months ago by redactie.

Please Log in to join the conversation.

More
11 years 4 months ago #1367 by godfather
Adding this code in the component layout is returning a white page !!

Please Log in to join the conversation.

More
11 years 4 months ago #1368 by redactie
sorry, i canᷰt solve white pages

please digg into the errorlog to find the case.

(the code had small type missing q before the 11, that wonᷰt be the cause)

Please Log in to join the conversation.

Time to create page: 0.358 seconds