-
Hi..
I trayed eeverything and can get out noindex ta from my homepage.
Page metabox is ok, robots.txt is ok, but still I have that noindex code in my head section
Marijan
-
And now I disabled rankmath plugin and noindex tag is gone!!!
Now I remmeber i was having same issue, and your solution was:
my homepage is also your account page for WooCommerce and that is causing the robots meta settings to be overridden to a noindex because the account page doesn’t hold SEO value so we set it to noindex.
solution:
add_filter( ‘rank_math/frontend/robots’, function( $robots ) {
if( is_account_page() ) {
$robots[‘index’] = ‘index’;
}
return $robots;
});This code is still there but not working any more.
MarijanHello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
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_account_page() || is_cart()) { $robots['index'] = 'index'; $robots['follow'] = 'follow'; } return $robots; });
Here’s how you can add filter/hook to your WordPress site: https://rankmath.com/kb/wordpress-hooks-actions-filters/
If the issue persists, then 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.
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/
Let us know how it goes. Looking forward to helping you.
No,
This code still leave noindex in my homepage
Please help.Marijan
I create a link yesterday to access.
Do we have any progres on this issue?
TnxCan you please tell me If you could fix this?
Or if you cant, just tell that I know and that I can move on.
Thank you.
MarijanHello,
Thank you for contacting Rank Math support.
We apologize for the delay in getting back to you. We are still investigating this issue on your website and we’d appreciate it if can share access to your FTP with us as well.
Best regards,
Tnx for response.
I instal WP file manager, so you could inspect/edit files from admin now.
Is that ok?
MarijanI updated sensitive data with FTP acces
M.Hello,
It looks like a cache issue, and the robots details only updated in the front end after you rollback ( install a different version on RankMath; update or downgrade ). see screencast at https://i.rankmath.com/v/sn2Pod
This solution was discovered by accident, and maybe clearing your server level cache could be a better fix.
We apologize for any inconveniences that might have been caused by this issue.
Thank you.
Ok,
What is solution? Clear cash on server side? And not update rankmath for a while?
MarijanHello,
The issue is that your website is heavenly cached so switching your robots tag to
index
is not showing on the front end until the plugin is changed by updating or rolling back.Right now, your website is showing
index
correctly since we have rolled back and updated the plugin but you should speak with your web hosting company or web developer about this as it is a cache-related issue.We hope this helps clarify the issue. Please let us know if you have any other questions or concerns.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.
The ticket ‘Noindex’ is closed to new replies.