Price selection min/max

More
10 years 8 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 or Create an account to join the conversation.

More
10 years 8 months ago - 10 years 7 months ago #1292 by bram
Replied by bram on topic Re: Price selection min/max
in your ( component ) layout try
Code:
if ( JRequest::getVar('q10','') || Request::getVar('q11','') ) { $document =JFactory::getDocument(); $document->setMetaData('googlebot','noindex,nofollow'); }
Last edit: 10 years 7 months ago by bram.

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

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

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

More
10 years 7 months ago #1368 by bram
Replied by bram on topic Re: Price selection min/max
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 or Create an account to join the conversation.

Time to create page: 0.249 seconds