From c8e3b27c0adb444e191c97a031d6b2a6dfd364fd Mon Sep 17 00:00:00 2001 From: dozer111 Date: Fri, 8 Jun 2018 15:11:15 +0200 Subject: [PATCH] Все не русские страницы должны бытиь закрыты на noindex,nofollow --- common/components/SeoComponent.php | 17 +++++++++++++++++ common/config/main.php | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 common/components/SeoComponent.php diff --git a/common/components/SeoComponent.php b/common/components/SeoComponent.php new file mode 100644 index 0000000..d6af892 --- /dev/null +++ b/common/components/SeoComponent.php @@ -0,0 +1,17 @@ +attributes['id']; + if($languageId!=2)return 'noindex,nofollow'; + else return parent::getRobots(); + } +} \ No newline at end of file diff --git a/common/config/main.php b/common/config/main.php index 88c6f11..fe97efe 100644 --- a/common/config/main.php +++ b/common/config/main.php @@ -1,6 +1,6 @@