diff options
Diffstat (limited to 'include/section_init.inc.php')
-rw-r--r-- | include/section_init.inc.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/section_init.inc.php b/include/section_init.inc.php index 05bc60f29..f80b321a1 100644 --- a/include/section_init.inc.php +++ b/include/section_init.inc.php @@ -520,7 +520,8 @@ SELECT id,file // add meta robots noindex, nofollow to avoid unnecesary robot crawls $page['meta_robots']=array(); -if ( isset($page['chronology_field']) or isset($page['flat']) +if ( isset($page['chronology_field']) + or ( isset($page['flat']) and isset($page['category']) ) or 'list'==$page['section'] or 'recent_pics'==$page['section'] ) { $page['meta_robots']=array('noindex'=>1, 'nofollow'=>1); @@ -534,8 +535,13 @@ elseif ('tags' == $page['section']) } elseif ('recent_cats'==$page['section']) { + $page['meta_robots']['noindex']=1; +} +elseif ('search'==$page['section']) +{ $page['meta_robots']['nofollow']=1; } + if ( $filter['enabled'] ) { $page['meta_robots']['noindex']=1; |