Post by tomeda » Fri Jun 12, 2015 5:42 pm

Hi,

I would like to google deindex entire language of my website, I have Bulgarian and English and I want to remove from googles index the English part of my website.

How can I do that using header meta tag: <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">?

Thanks!

OpenCart SEO Services
http://tomeda.bg


User avatar
New member

Posts

Joined
Thu Mar 19, 2015 4:48 am


Post by chulcha » Fri Jun 12, 2015 8:58 pm

Show the link for the Bulgarian and English
What is your default language

Active Member

Posts

Joined
Fri Jul 18, 2014 4:39 pm

Post by tomeda » Fri Jun 12, 2015 11:23 pm

The default language is Bulgarian, English is not visible anywhere in the website however it's indexed by google.

Here it is: http://funkykids-bg.com/ and here is what is indexed in google: https://www.google.bg/search?q=site:funkykids-bg.com

The website owner is thinking about english version but right now the english descriptions are not filled correctly, so for now I just want to mark it as noindex, nofollow.

OpenCart SEO Services
http://tomeda.bg


User avatar
New member

Posts

Joined
Thu Mar 19, 2015 4:48 am


Post by chulcha » Sat Jun 13, 2015 5:42 pm

/controller/common/header.php

Code: Select all

if ($this->language->get('code') == 'bg') {
$data['noindex'] = true;
} else {
$data['noindex'] = false;
}
/view/theme/*/template/common/header.tpl

Code: Select all

<?php if ($noindex) { ?>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<?php } ?>


Active Member

Posts

Joined
Fri Jul 18, 2014 4:39 pm

Post by tomeda » Mon Jun 22, 2015 8:56 am

I'm getting error: Notice: Undefined variable: noindex in /home/user/public_html/vqmod/vqcache/vq2-catalog_view_theme_default_template_common_header.tpl on line 7

I've cleared the cache however the same is happening.

OpenCart SEO Services
http://tomeda.bg


User avatar
New member

Posts

Joined
Thu Mar 19, 2015 4:48 am


Post by chulcha » Mon Jun 22, 2015 4:48 pm

sorry.

for 1.5

Code: Select all

if ($this->language->get('code') == 'bg') {
$this->data['noindex'] = true;
} else {
$this->data['noindex'] = false;
}

Active Member

Posts

Joined
Fri Jul 18, 2014 4:39 pm

Post by tomeda » Sun May 01, 2016 2:04 am

Hi,

I know it was long time ago, but I still can't make it work as it should! Implemented exactly the code you gave me in exact files you told me, however I can't see noindex, nofollow meta tag in english version header.

OpenCart SEO Services
http://tomeda.bg


User avatar
New member

Posts

Joined
Thu Mar 19, 2015 4:48 am


Post by chulcha » Sun May 01, 2016 2:14 am

If you need to do this, please PM

Active Member

Posts

Joined
Fri Jul 18, 2014 4:39 pm
Who is online

Users browsing this forum: Bing [Bot] and 22 guests