Yoast SEO
[resolved] [Plugin: WordPress SEO by Yoast] Bug when allowing search engines after first forbidding them(?) (3 posts)

  1. lupor
    Posted 3 years ago #

    Hi there,

    I use the Yoast-SEO-Plugin for some months now and I think it's a great plugin.

    What I noticed is, that when you first disable blog-indexing in your WordPress privacy settings and then later reactivate it, with the Yoast-Plugin installed, there's no "index,follow" tags!

    I searched in the code and found the following line in class-frontend.php:

    $robotsstr = preg_replace( '/^index,follow,?/', '', $robotsstr );

    After commenting it out, everything usually works fine and as expected. I dont really know why this line is there. Maybe the plugin checks if indexing is disabled and then adds this line and later forgets to remove it (after indexing is enabled)?



  2. mikeotgaar
    Posted 3 years ago #

    It looks like your concern is the "index,follow" is not being added to meta robots e.g.
    <meta name="robots" content="index,follow"/>
    The plugin doesn't add this as it's not required.
    Google (and the other important search engines) will index and follow any page WITHOUT "noindex,nofollow" so having "index,follow" is entirely optional.
    Your blog will be indexed and links followed without that markup (I've got hundreds of pages in Google index - none use the "index,follow" robots meta markup)
    Hope this sets your mind at ease

  3. lupor
    Posted 3 years ago #

    Ahh thx, you're right, my fault. Just thought that in previous projects, there was a "index,follow" - but it seems there wasn't.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.