incorrect no index on product pages

#353317
  • Resolved Mohd. Nauman Khalid
    Rank Math free

    Hi, when my rank math is enabled all of my product pages have no index meta tag added to them. please check the screenshots. of my settings. Also my post_sitemap.xml is shows white page while it does have the data in when checking source code.

    i did all the troubleshooting steps mentioned in different support threads similar to this, enabling troubleshooter using wordpress health plugin, individually enabling each plugin. there is no conflict.

    checked all my custom code in function for whitespace couldnt find one. “Uninstalled rank math” removing all related database (using the uninstall filter) and started everything from scratch, still the same issue.

    attaching screenshots

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

    Thank you for contacting the support, and sorry for any inconvenience that might have been caused due to that.

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress login in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Prabhat
    Rank Math agency

    Hello,

    Thank you for contacting the support and we regret the inconvenience caused.

    I tried to login into your website’s admin area to investigate the issue but the login link is redirecting to the /wp-admin/profile.php#defender-security page and is blocking access to the admin area. You can have a look at the screenshot in the sensitive data section of this ticket.

    Please verify the situation and let us know so that we can investigate further.

    Regarding the white page in the sitemap, could you confirm if you’ve also followed the below steps? If not, please follow them and see if the issue gets fixed:
    1. Flush the Sitemap cache by following this video screencast:
    https://i.rankmath.com/pipRDp

    2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
    https://rankmath.com/kb/exclude-sitemaps-from-caching/

    3. Clear your website and browser’s cache and check the sitemaps again.

    Please let us know how that goes.

    Thank you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Yes I have all of that. Flushed permalinks,

    my nginx fastcgi cache setting looks like this

    # Don’t cache URIs containing the following segments
    if ($request_uri ~* “wp-admin|xmlrpc.php|wp-.*.php|/feed/|sitemap(_index)?.xml|cart|checkout|s=|my-account*|/login-tfm|customer-logout|thank-you|filter|publish”) {
    set $skip_cache 1;
    set $skip_reason URI;
    }

    updated it to the following, still not working.

    if ($request_uri ~* “wp-admin|xmlrpc.php|wp-.*.php|/feed/|sitemap(_index)?.xml|cart|checkout|s=|my-account*|/login-tfm|customer-logout|thank-you|filter|publish|sitemap”) {
    set $skip_cache 1;
    set $skip_reason URI;
    }

    Prabhat
    Rank Math agency

    Hello,

    Though I was able to login into your website’s admin area, all the pages in the backend are still redirecting to the page I mentioned in my previous reply.

    Please have a look at the screencast in the sensitive data section and temporarily disable this firewall so that we can investigate further.

    Looking forward to helping you.

    Thank you.

    ok done.

    I mentioned it in the details that you’ll have to setup 2 factor, as removing that would require all of my admin to reset their 2 factor next time re enable it.

    anyways i have removed it. you can now login and test things.

    Hello,

    All your product pages are returning true for the check is_checkout() which is why our plugin is setting the index status as noindex.

    The checkout pages should not be indexed and since your product pages are essentially being detected as that because of the “Pay Now” button it’s getting the noindex tag.

    You can try and force the correct robots meta tags by editing the following filter: https://rankmath.com/kb/filters-hooks-api-developer/#change-robots-meta

    Don’t hesitate to get in touch if you have any other questions.

    /**
    * Allows filtering of the robots meta data.
    *
    * @param array $robots The meta robots directives.
    */
    add_filter( ‘rank_math/frontend/robots’, function( $robots ) {
    $robots[‘index’] = ‘index’;
    return $robots;
    });

    ok this seems to have solved the issue. adding the following line now.

    <meta name=”robots” content=”index, follow, max-snippet:-1, max-video-preview:-1, max-image-preview:large” />

    now what about the post_sitemeta.xml showing blank page?

    Hello,

    The issue is being caused by the ALT text that you have added to the images on this post: https://forevermuslim.in/the-story-of-alis-engagement-to-fatimah-r-a-2/

    The alt text should not contain line breaks. Please fix the alt text and flush the cache of your sitemap. Once done, the sitemap should work fine.

    Let us know how that goes. Looking forward to your update.

    Thanks.

    This solved the issue, thank you so much. Ill keep this in mind.

    Prabhat
    Rank Math agency

    Hello,

    Glad that helped.

    Please feel free to get in touch if you require any further assistance.

    Thank you.

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

The ticket ‘incorrect no index on product pages’ is closed to new replies.