Page is set to “noindex”

#730442
Viewing 9 replies - 1 through 9 (of 9 total)
  • Hello,

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

    We checked your page and we can see you’ve order buttons on this page. Please note that Rank Math by default sets your cart page to noindex. In this case, please try to use the following filter on your website and see if that works for you:

    add_filter( 'rank_math/frontend/robots', function( $robots ) {
        if( is_cart() || is_checkout() ) {
            $robots['index'] = 'index';
        }
        return $robots;
    });
    

    Here’s how you can add filter/hook to your WordPress site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    Hi, thanks for your replay! Before applying the code i want to kindly ask, what actually make this code and how is going to affect my website. Soon I will start hard working on SEO optimization and I do not want to risk the chanse of the right optimisation 🙂

    Regards, Albena

    Hello,

    Rank Math automatically adds the noindex to the robots meta of myaccount, checkout, and cart pages as they are unique for each user.

    The filter above simply sets your checkout and cart pages to index, which bypasses the automatic noindex from Rank Math.

    Alternatively, if you’re using any cart or checkout plugins, you may have a plugin/theme that is setting that page to be in that state which could cause conflict with Rank Math’s meta robots.

    Hope that helps.

    Hi, this is very interesting, because i have like 10 websites, build the same way and their home page is settet to “index”. Check this one for example – https://touchmy.hair/hair-lamination/hr/

    Hello,

    In this case, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins 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.

    Hello,

    You have set the homepage as the cart page, and our plugin sets the cart page to Noindex:

    In this case, you will either have to select some other page as the cart page or use the filter shared by my colleague to set the page to Index.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    OMG! Thank you so much! That worked! If it wasn’t your help, probably I would be still stuck. Thank you so much ❤️

    Hello,
    
    We are super happy that this issue is already resolved. 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 9 replies - 1 through 9 (of 9 total)

The ticket ‘Page is set to “noindex”’ is closed to new replies.