Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: DrBermant on January 02, 2011, 03:29:51 AM

Title: Robot content noindex vs all help please
Post by: DrBermant on January 02, 2011, 03:29:51 AM
In index.template.php there is a bit of code that confuses me.

<meta name="description" content="', $context['page_title'], '" />', empty($context['robot_no_index']) ? '' : '
   <meta name="robots" content="noindex" />', '

Is this code there to stop robots from indexing the forum or what?

Is there any harm in replacing with:

<meta name="description" content="', $context['page_title'], '" />', empty($context['robot_no_index']) ? '' : '
   <meta name="robots" content="all" />

Although i do want the robots to parse and index the forum, I certainly do not want them where they do not belong.

Any help appreciated,

Michael Bermant, M.D.
Title: Re: Robot content noindex vs all help please
Post by: tumbleweed on January 02, 2011, 03:50:19 AM
personally I believe the index.template.php is already setup to keep bots out of were they do not belong as well as letting bots in were they do belong. Further Bot directions should always be added in .htaccess file

http://www.javascriptkit.com/howto/htaccess.shtml
Title: Re: Robot content noindex vs all help please
Post by: DrBermant on January 02, 2011, 04:18:49 AM
Thank you, I converted back to original.

Michael Bermant, M.D.