Forums / General Questions / robots and noindex, nofollow problem

robots and noindex, nofollow problem

Locked

Views: 6,280

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
23 Jan 2008, 1:32 AM
#1
budanart avatar

budanart

New Zenner

Join Date:
Jan 2008
Posts:
7
Plugin Contributions:
0

robots and noindex, nofollow problem

My very first post. First I'd like to say a great big giant THANK YOU to everyone who has made ZenCart the amazing product that it is!

I'm still customizing the site, current location is http://blog.stevebudan.com
My index page and (without extensive investigation) non-category pages all seem to have a "< meta name="robots" content="noindex, nofollow" / >" which I'm thinking is not ideal.

My category and product pages do NOT have the robots meta tag, which is what I want.

The tag seems to come from includes\init_includes\init_add_crumbs.php
near the top around line 20 is this code

//echo 'I SEE ' . (int)$cPath_array[$i] . '<br>';
    if ($categories->RecordCount() > 0) {
      $breadcrumb->add($categories->fields['categories_name'], zen_href_link(FILENAME_DEFAULT, 'cPath=' . implode('_', array_slice($cPath_array, 0, ($i+1)))));
    } else {
      // if invalid, set the robots noindex/nofollow for this page
      $robotsNoIndex = true;
      break;
    }

this sets $robotsNoIndex = true; then in includes\templates\template_default\common\html_header.php
we have

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

which seems to output the robots, noindex tag.

so I don't understand the code completly, I'm not sure what exact condition sets $robotsNoIndex to true, but the condition seems to be if we are not on a category page or one of its sub-pages.

Finally my questions

  1. is this the source of the robots, nofollow, noindex tag?
  2. if it is how do I get rid of it?
  3. if it's not, how can I find where it's coming from, as I would really like all of the site indexed not just the category and product pages.

Thanks in advance!

budanArt
PS
It's not a "test" site. When customization is finished it will be moved to it's permanent home (https://www.budanart.com).

23 Jan 2008, 1:53 AM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,682
Plugin Contributions:
0

Re: robots and noindex, nofollow problem

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

23 Jan 2008, 2:14 AM
#3
budanart avatar

budanart

New Zenner

Join Date:
Jan 2008
Posts:
7
Plugin Contributions:
0

Re: robots and noindex, nofollow problem

Thank you!

Made the change and all is as expected, the robot tag is no longer there.

thanks again!