Results 1 to 3 of 3

Hybrid View

  1. #1

    Default 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

    PHP 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_array0, ($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 Code:
    <?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 (www.budanart.com).

  2. #2
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default 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.

  3. #3

    Default 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!

 

 

Similar Threads

  1. v151 noindex nofollow problem on lite_blue template
    By darrynrb in forum Upgrading to 1.5.x
    Replies: 20
    Last Post: 10 Sep 2013, 12:00 PM
  2. Replies: 1
    Last Post: 21 Jul 2010, 07:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg