Forums / Upgrading to 1.5.x / noindex nofollow problem on lite_blue template

noindex nofollow problem on lite_blue template

Locked

Started by darrynrb on 15 Jun 2013, 6:54 PM · Views: 2,524

Results 1 to 20 of 21
This thread is locked. New replies are disabled.
15 Jun 2013, 6:54 PM
#1
darrynrb avatar

darrynrb

New Zenner

Join Date:
Jun 2013
Location:
South Africa
Posts:
11
Plugin Contributions:
0

noindex nofollow problem on lite_blue template

Hi

I am currently using the lite_blue template and have recently noticed after upgrading to 1.51 that my ranking in google has dropped. I just noticed tonight that my product pages all have the following line in them :<meta name="robots" content="noindex, nofollow" />

which I guess is causing some problems. If I switch to lite_orange template the noindex nofollow is no longer there.

Please can someone point me in the right direction as to why the one template has it and not the other? Where can I change this?

Thanks

15 Jun 2013, 7:27 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: noindex nofollow problem on lite_blue template

Download this file
includes/templates/lite_blue/common/html_header.php file
Look for to see if it is there

 <?php [B]//[/B]if (defined('ROBOTS_PAGES_TO_SKIP') && in_array($current_page_base,explode(",",constant('ROBOTS_PAGES_TO_SKIP'))) || $current_page_base=='down_for_maintenance') { ?>
<meta name="robots" content="noindex, nofollow" />
<?php [B]//[/B]} ?> 

If so replace with this

 <?php if (defined('ROBOTS_PAGES_TO_SKIP') && in_array($current_page_base,explode(",",constant('ROBOTS_PAGES_TO_SKIP'))) || $current_page_base=='down_for_maintenance') { ?>
<meta name="robots" content="noindex, nofollow" />
<?php } ?> 

A quick search and I could not locate the source of your template "lite_blue"

Zen-Venom Get Bitten

15 Jun 2013, 7:35 PM
#3
darrynrb avatar

darrynrb

New Zenner

Join Date:
Jun 2013
Location:
South Africa
Posts:
11
Plugin Contributions:
0

Re: noindex nofollow problem on lite_blue template

Thanks Kobra

I do not have a html_header.php in that folder, everything in that folder starts with tpl_

12leaves.com is the souce of the template.

15 Jun 2013, 7:42 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: noindex nofollow problem on lite_blue template

Do you have that file in your lite_orange template?

Zen-Venom Get Bitten

15 Jun 2013, 7:46 PM
#5
darrynrb avatar

darrynrb

New Zenner

Join Date:
Jun 2013
Location:
South Africa
Posts:
11
Plugin Contributions:
0

Re: noindex nofollow problem on lite_blue template

No, not there either, these are the files in /common.

tpl_box_default_left.php
tpl_box_default_right.php
tpl_box_default_single.php
tpl_footer.php
tpl_header.php
tpl_main_page.php

I see the file is in the template_default/common but I guess that would have no effect on the blue/orange templates?

15 Jun 2013, 7:56 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: noindex nofollow problem on lite_blue template

  1. Does your /includes/templates/template_default/common/html_header.php file match the original one that comes with original Zen Cart code?
    (You can download the original code by clicking on the download link on the home page of www.zen-cart.com )

  2. Also, does the problem continue if you temporarily switch to the "Classic" template via Admin->Tools->Template Select ?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Jun 2013, 8:18 PM
#7
darrynrb avatar

darrynrb

New Zenner

Join Date:
Jun 2013
Location:
South Africa
Posts:
11
Plugin Contributions:
0

Re: noindex nofollow problem on lite_blue template

It seems that by coincidence everytime I was on lite_blue I was viewing the source of product x and when I changed to lite_orange I viewed the source of prduct y (which (not thinking the problem may be different on the different products)

I then tested a new product which did not put in the "nofollow..." On looking through other products it seems fairly random, most have the "nofollow" but a few of them do not.

I apologise Kobra for not giving you the correct info.

It seems if I recreate each product it will sort out the problem but that means many hours work and would be great to avoid that if possible. Any suggestions?

15 Jun 2013, 8:47 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: noindex nofollow problem on lite_blue template

  1. See my questions above.

  2. Please post URL links to your site's pages which are exhibiting the problem. (If you really want to obscure your URL, then put spaces b e t w e e n letters so search engines ignore them.)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Jun 2013, 9:00 PM
#9
darrynrb avatar

darrynrb

New Zenner

Join Date:
Jun 2013
Location:
South Africa
Posts:
11
Plugin Contributions:
0

Re: noindex nofollow problem on lite_blue template

Thanks DrByte

This one has nofollow noindex : http://www.staystuck.co.za/kids-labels-c-10/school-starter-pack-p-109.html
This on doesn't : http://www.staystuck.co.za/kids-labels-c-10/iron-on-labels-p-120.html

If I change to classic, yes the problem still occours on the different product pages, some pages it is there and others it is not.

According to winmerge the html_header.php files are identical.

15 Jun 2013, 9:14 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: noindex nofollow problem on lite_blue template

The one that has noindex,nofollow is doing that because your URL is invalid. You're actually specifying an invalid category.

Your product 109 doesn't exist in category 10. It is being told not to index because your URL is invalid.
But product 120 does exist in category 10 ... so it gets no robots direction instructions, because it is correct.

So, your problem has nothing to do with robots/noindex/nofollow.

Your problem is that whatever you're using to create your URLs is either creating them wrong, or you've hard-coded specific URLs with invalid categories on them.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Jun 2013, 9:35 PM
#11
darrynrb avatar

darrynrb

New Zenner

Join Date:
Jun 2013
Location:
South Africa
Posts:
11
Plugin Contributions:
0

Re: noindex nofollow problem on lite_blue template

How about this one: http://www.staystuck.co.za/kids-labels-c-10/bag-tags-p-117.html

If I look in my product listing it falls under c-10 and is p117 but also has the noindex

I think Ultimate SEO is handling the url names

Sorry, real beginner here trying to wrap my head around it.

15 Jun 2013, 10:10 PM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: noindex nofollow problem on lite_blue template

This one doesn't have the noindex: http://www.staystuck.co.za/kids-labels-c-10/bag-tags-p-117.html

It could be that your URL-rewriter is causing the troubles. Turn it off and see.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Jun 2013, 10:15 PM
#13
darrynrb avatar

darrynrb

New Zenner

Join Date:
Jun 2013
Location:
South Africa
Posts:
11
Plugin Contributions:
0

Re: noindex nofollow problem on lite_blue template

DrByte:

The one that has noindex,nofollow is doing that because your URL is invalid. You're actually specifying an invalid category.

Your product 109 doesn't exist in category 10. It is being told not to index because your URL is invalid.
But product 120 does exist in category 10 ... so it gets no robots direction instructions, because it is correct.

So, your problem has nothing to do with robots/noindex/nofollow.

Your problem is that whatever you're using to create your URLs is either creating them wrong, or you've hard-coded specific URLs with invalid categories on them.

Ok, think I have it. After looking into what you said about product 109 not existing I looked into each product and noticed that some of them had not been assigned a master category (I think this may have been from the import from OSCommerce to Zen). Once I assigned a master category that corresponded to the category in the url all seems ok now. The nofollow has been removed from the product pages now.

Thanks DrByte and kobra for pointing me in the right direction.

15 Jun 2013, 10:17 PM
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: noindex nofollow problem on lite_blue template

Thanks for posting back your solution.
I may add that in the future it's useful to include information like the fact that your data was recently imported from another data source, etc. The more "context" you provide, the better and faster the solution.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Jun 2013, 10:29 PM
#15
darrynrb avatar

darrynrb

New Zenner

Join Date:
Jun 2013
Location:
South Africa
Posts:
11
Plugin Contributions:
0

Re: noindex nofollow problem on lite_blue template

To be honest, it was imported about a year ago and everything was working fine until the upgrade from 1.3x to 1.5 which was not done by myself. It may have been an underlying problem that I had never picked up before or maybe it was my drop in rankings that made me go looking for a problem. Either way I am glad and grateful to have it fixed.

9 Sep 2013, 11:21 PM
#16
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: noindex nofollow problem on lite_blue template

I am having a similar problem V1.5.1 but only with my Contact Us page. I switched to Classic and it was still in the source code. :(

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

9 Sep 2013, 11:32 PM
#17
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: noindex nofollow problem on lite_blue template

pixelpadre:

I am having a similar problem V1.5.1 but only with my Contact Us page. I switched to Classic and it was still in the source code. :(By default that page is correct and not indexed.
Why would you want it indexed?

9 Sep 2013, 11:44 PM
#18
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: noindex nofollow problem on lite_blue template

Well because goooogle seems to like websites who dont hide their contact information. Top sites in generic returns tend to have contact information in search results. I am sure you have seen it.

Been chasing this down for 2 hours.

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

10 Sep 2013, 1:24 AM
#19
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: noindex nofollow problem on lite_blue template

pixelpadre:

Well because goooogle seems to like websites who dont hide their contact information. Top sites in generic returns tend to have contact information in search results. I am sure you have seen it.

Been chasing this down for 2 hours.

Is there a file I can edit. I have done a string search on every file and could not locate it. Tried the Db also.

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!

10 Sep 2013, 1:30 AM
#20
pixelpadre avatar

pixelpadre

Suspended

Join Date:
Jun 2007
Location:
Eustis, Florida, USA, EARTH
Posts:
868
Plugin Contributions:
0

Re: noindex nofollow problem on lite_blue template

After a large bowl of spaghetti alfredo with Chicken, I found it. :)

ZC v1.5.7 "I was so much older then...I'm younger than that now" Cut the umbilical cord with webhosts after 20 years. FREEDOM!