Hello,
Thank you for contacting Rank Math and bringing your concern to our attention.
To noindex your paginated pages, go to Rank Math > Titles & Meta > Misc Pages > and enable this option.

Hope this helps.
Thank you.
Hi,
Fist of all thanks for your reply. I already checked this option but this option will add noindex to single posts pagination also. My website is based on wishes, quotes. In future, I have to add pagination to my single blog posts. So, this will add noindex to those pages as well and I don’t want that.
So if possible please provide me code snippet to add “noindex, follow” to only homepage pagination, that will be more beneficial for me.
Thanks
Hello,
If you’ve removed the pagination, the homepage would not return true for the is_paged() function. In this case, you’ll need to apply the desired robots meta settings based on the URL.
Depending upon how the URL structure for pagination was set on your website, you might need to slightly modify the below filter to get the desired output:
add_filter( 'rank_math/frontend/robots', function( $robots ) {
if(strpos($_SERVER["REQUEST_URI"], '/page/')) {
$robots["index"] = 'noindex';
$robots["follow"] = 'follow';
}
return $robots;
});
In the above code, you’ll need to replace /page/ with the prefix of the paginated URL of the homepage.
Here’s how you can add the filter to the website: https://rankmath.com/kb/filters-hooks-api-developer/
Let us know how that goes.
Hi Prabhat,
Thanks for your reply. I replaced /page/ with http://www.domain.com/page/ but it didn’t worked. So, if I am doing it wrong please guide me.
Thanks
Hello,
It seems that you have included the whole URL for the /page/ in the code.
Could you please share the affected URL and the filter you have applied so we can check?
You can add them in the sensitive data section

It is completely secure, and only our support staff has access to that section.
Looking forward to helping you.
Thank you.
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.