Hello,
Thanks for contacting us, and sorry for any inconvenience that might have been caused due to that.
Can you please share the affected URLs with us? So that we can investigate the issue further for you.
Looking forward to helping you.
Thank you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
sir not 2 or 3 URL create this problem you see in the image a lot of URL
https://imgur.com/nf3CgC2
how i solve all url
please reply my this qurey
sir not 2 or 3 URL create this problem you see in the image a lot of URL
https://imgur.com/nf3CgC2
how i solve all url
Hello,
Thank you for your patience.
This happens due to your paginated URLs are similar when it comes to content, but their canonical URLs are self-referencing.
To fix this, Rank Math has a feature to set your paginated pages to noindex:
https://rankmath.com/kb/how-to-noindex-paginated-pages/
However, if you still want to add them set to be indexed, then you may need to apply this code to set the canonical URL as the URL of the main page:
add_filter( 'rank_math/frontend/canonical', function( $canonical ) {
if ( is_paged() ) {
$link = $_SERVER['REQUEST_URI'];
$arr = explode('/page/', $link,);
$canonical = home_url($arr[0]. '/');
}
return $canonical;
});
And here’s a guide to adding the code to the website:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
Hope that 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.