Hi,
i am struggling with one of my sites using version 1.3.7 getting the googlebot to visit my site. Obviously i considered many of the things I do to try and generate good ranking could be a reason why googlebot hasn't visited my site since March 2007! I made lots of changes etc but nothing seemed to work to bring the googlebot back.
The i looked at the source code to my index page, and found meta code tags telling the bots to go away. This was the exact code being generated dynamically.
Code:
<meta name="robots" content="noindex, nofollow" />
Looking at includes/templates/yourtemplate/common/html_header.php I noticed included the following code
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 } ?>
Now please excuse my ignorance but isn't that stating to all bots don't follow or index this page? I realise that it should be a proviso of if the page is the down for maintenance, however when I removed this code there was no longer the noindex nofollow code within my normal web pages as shown previously.
If that is so then no search engine will index my sites page, surely this is not proper? Am I missing something, as this suggests to me that my pages that are generated using html_header are telling the search engine bots to go away!!! The last thing I (or anyone else would)want to happen!
Thanks for any help.
Bookmarks