From b6789d4de9f701f4de01ae2ede439f413a4044a5 Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 3 Sep 2024 21:05:44 +0200 Subject: [PATCH] fixes #2218 avoid search engines to index search pages --- include/section_init.inc.php | 2 +- themes/default/template/index.tpl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/section_init.inc.php b/include/section_init.inc.php index 0dd5d13ff..d311b5043 100644 --- a/include/section_init.inc.php +++ b/include/section_init.inc.php @@ -611,7 +611,7 @@ elseif ('recent_cats'==$page['section']) } elseif ('search'==$page['section']) { - $page['meta_robots']['nofollow']=1; + $page['meta_robots']=array('noindex'=>1, 'nofollow'=>1); } if ( $filter['enabled'] ) { diff --git a/themes/default/template/index.tpl b/themes/default/template/index.tpl index 580defda3..e767e05e0 100644 --- a/themes/default/template/index.tpl +++ b/themes/default/template/index.tpl @@ -14,7 +14,7 @@