Hello,
Thank you for contacting us and we regret the inconvenience caused.
The cart page should not be indexed as the content from that page is very specific for each user and as such, there’s no real SEO benefit in having it indexed.
By default, we set this page as noindex
because of this same reason.
However, if you still wish to index the cart page, then you can add the below filter to your website:
add_filter( 'rank_math/frontend/robots', function( $robots ) {
if ( is_cart() ) {
$robots['index'] = 'index';
$robots['follow'] = 'follow';
}
return $robots;
});
Please follow this guide to add the filter:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
Hope this helps.
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.