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