No index , no follow generated automated in site once activate plugin

#699477
  • Resolved Ahlyeg
    Rank Math free

    I have a big serious problem once i activate the SEO rank math plugin this code added directly to all my pages and posts
    meta name=”robots” content=”nofollow, noindex”
    that prevent my site from indexed on Google Console or others even when I activate all options in a plugin that allow index this code keep existing and stop indexing i followed all possible solution and even I try to add this code in functions.php to prevent this code like
    remove_filter( ‘wp_robots’, ‘wp_robots_noindex’, 10 );
    remove_filter( ‘wp_robots’, ‘wp_robots_noindex_embeds’, 10 );
    remove_filter( ‘wp_robots’, ‘wp_robots_noindex_search’, 10 );
    remove_filter( ‘wp_robots’, ‘wp_robots_max_image_preview_large’, 10 );
    remove_all_filters( ‘wp_robots’ );
    but it does affect while the plugin activates once I deactivate it disappears and works fine
    I think there is something in the database record related to the plugin overnight anything I do it

    more hint
    the same issue happens when I try to use Yoast or allinone but when I use a different plugin and refuse to migrate any data from the old SEO plugin it works fine without this option

    this is our site https://www.alborsaanews.com/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    I apologize for the inconvenience you’re experiencing with the Rank Math plugin. It seems that the “noindex, nofollow” meta tag is being added to all your pages and posts, preventing your site from being indexed on Google Console and other search engines.

    To resolve this issue, you can check the following settings:

    1. Global Settings in Rank Math: Navigate to your WordPress Dashboard → Rank Math SEO → Titles & Meta → Posts/Pages/Products/CPTs and ensure that the “noindex” option is not enabled. Here’s a screenshot to help you locate the setting:

      Ensure Search Engine Visibility option is unchecked

    2. Robots.txt Rules: Check if there are any disallow tags in your website’s robots.txt file that might be preventing your pages from being indexed. You can use a robots.txt editor in Rank Math at WordPress Dashboard → Rank Math SEO → General Settings → Edit Robots.txt to change any disallow tags. Here’s a screenshot to help you locate the setting:

      Edit robots.txt

    If you’ve already checked these settings and the issue persists, please let us know, and we’ll be happy to assist you further.

    Thank you for bringing this to our attention.

    Sources:
    Why Google Hasn’t Indexed Your Post, Page, and/or Website? » Rank Math
    How to Noindex URLs With Rank Math » Rank Math
    Rank Math Sitemap Issues and Their Fixes » Rank Math
    How to NoIndex All Posts in a Category » Rank Math
    How to Fix the “Indexed, though blocked by robots.txt” Error » Rank Math

    Ahlyeg
    Rank Math free

    I already did all of that but the issue as it is it must be exist in database that it is what i am think

    Hello,

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to this issue.

    We suspect this issue is caused by a theme/plugin. We tried to do a covert plugin/theme conflict check using the Health Check & Troubleshooting plugin but for some reason, the troubleshooting mode doesn’t work correctly on your site.

    We then added the following filter to your site using the code snippets plugin to forcefully convert the nofollow and noindex attributes to follow and index:

    add_filter( 'rank_math/frontend/robots', function( $robots ) {
        // Set both index and follow attributes for all post types
        $robots['index'] = 'index';
        $robots['follow'] = 'follow';
    
        return $robots;
    });

    All posts/pages of your site are now bearing follow and index attributes in the robots tag.

    You still have to determine which plugin or if the theme is responsible for this issue. You can refer to this guide on how to run a plugin/theme conflict check: https://rankmath.com/kb/check-plugin-conflicts/

    Please remove this code from your functions.php file:

    remove_filter( ‘wp_robots’, ‘wp_robots_noindex’, 10 );
    remove_filter( ‘wp_robots’, ‘wp_robots_noindex_embeds’, 10 );
    remove_filter( ‘wp_robots’, ‘wp_robots_noindex_search’, 10 );
    remove_filter( ‘wp_robots’, ‘wp_robots_max_image_preview_large’, 10 );
    remove_all_filters( ‘wp_robots’ );

    We hope this helps. Please let us know if you have further questions or concerns.

    Thank you.

    Ahlyeg
    Rank Math free

    well first of all thank you so much for this great help I just made a modification that I put this code directly into functions.php and it works good

    but regarding the reason, I have not reached anything yet it is too strange your code solves the issue if you could suggest any other steps to solve the problem completely I would appreciate especially because my backend is slower while the plugin activated especially which post-editing

    my last question please regarding ( Use Focus Keyword in the URL ) this is one of your recommendations for the post but our site worked from years ago with a permalink post ID, not post name
    I can not change the permalink cause I will lose a lot of URLs and will not work is there any solution to handle that point especially rank SEO the only plugin asks for this point

    Hello,

    To fix the noindex issue, we recommend following this guide without using the Health Check plugin:
    https://rankmath.com/kb/check-plugin-conflicts/

    You may need to disable/deactivate the plugins one by one manually and check which one is conflicting with Rank Math’s robots meta to noindex.

    Regarding the Use Focus Keyword in the URL test, you may need to skip or safely ignore the test since you’re using a custom structure.

    You may also use this filter to disable that test on your site:
    https://rankmath.com/kb/disable-seo-content-tests/#keyword-in-permalink

    Hope that helps.

    Ahlyeg
    Rank Math free

    i have no words to describe how thankful i can say to you, you have to help me so much regarding the archiving issue, from my side I will try to check for the reason using your steps but really thanks for help

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this ticket.