Results 1 to 10 of 14

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Posts
    11
    Plugin Contributions
    0

    Default How Do I Get Rid Of Nofollow & NO Index tags?

    Hi,

    I cant seem to figure out to get rid of the no index and nofollow tags, I have checked the /includes/languages/english/meta_tags.php file and in ROBOTS_PAGES_TO_SKIP there is only: 'login,logoff,create_account,account,account_edit,account_history,account_histor y_info,account_newsletters,account_notifications,account_password,address_book,a dvanced_search,advanced_search_result,checkout_success,checkout_process,checkout _shipping,checkout_payment,checkout_confirmation,cookie_usage,create_account_suc cess,contact_us,download,download_timeout,customers_authorization,down_for_maint enance,password_forgotten,time_out,unsubscribe,info_shopping_cart,popup_image,po pup_image_additional,product_reviews_write,ssl_check');
    But I am getting the tag on a number of other pages not listed here including the home page.
    Any Ideas?

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,251
    Plugin Contributions
    3

    Default Re: How Do I Get Rid Of Nofollow & NO Index tags?

    Did you perhaps delete the following line, or change its parameters, in templates/template_default/templates/common/html_header.php

    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) { ?>
    18 years a Zencart User

  3. #3
    Join Date
    Aug 2009
    Location
    Greeneville, TN USA
    Posts
    51
    Plugin Contributions
    0

    bug Re: How Do I Get Rid Of Nofollow & NO Index tags?

    I've found an error in the html_header.php I have installed on several sites. Since they are all v1.3.8a, I'm not sure exactly when this would have come in. They are all recent installs from separate hosting companies.

    Portions of the code controlling ROBOTS_PAGES_TO_SKIP have been commented out, it looks like a debugging thing.

    It should read...

    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') { ?>
    <meta name="robots" content="noindex, nofollow" />
    <?php } ?>
    Instead it reads...

    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') { ?>
    <meta name="robots" content="noindex, nofollow" /> 
    <?php //} ?>
    Notice the extra "//" in two places. Remove those, and you should be fine. The way it reads, it ALWAYS has the noindex, nofollow, even on your home page!

  4. #4
    Join Date
    Nov 2009
    Posts
    11
    Plugin Contributions
    0

    Default Re: How Do I Get Rid Of Nofollow & NO Index tags?

    Thanks you both Rock!!!

  5. #5
    Join Date
    Aug 2009
    Location
    Greeneville, TN USA
    Posts
    51
    Plugin Contributions
    0

    Default Re: How Do I Get Rid Of Nofollow & NO Index tags?


  6. #6
    Join Date
    Nov 2009
    Posts
    11
    Plugin Contributions
    0

    Default Re: How Do I Get Rid Of Nofollow & NO Index tags?

    Cheers mate

 

 

Similar Threads

  1. Index filters & meta tags
    By flashy275 in forum General Questions
    Replies: 0
    Last Post: 5 Jan 2011, 01:14 AM
  2. Home url is showing /index.php. How to get rid of it?
    By Sounpopular in forum General Questions
    Replies: 0
    Last Post: 18 Nov 2010, 05:34 PM
  3. How do I get rid of the advertisement on the bottom of my index.php page?
    By moonlight in forum Installing on a Windows Server
    Replies: 2
    Last Post: 17 Jan 2010, 12:50 AM
  4. Replies: 3
    Last Post: 9 Oct 2007, 04:05 PM
  5. Yellow & Orange Login Box:: Get Rid??
    By Linux in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 22 Jun 2007, 07:49 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR