-
Hello,
While reading guide, rankmath recomends to no index the pagination pages. I want to keep pagination for blog archive pages and category pages for better user experience and at the same time I would like the search engine to index it. How can I achieve it ?
-
Hello,
Thank you for contacting the support and sorry for any inconvenience that might have been caused due to that.
Please head over to WordPress Dashboard > Rank Math > Titles & Meta > Misc. Pages. and uncheck Noindex Paginated Pages.
Here is the screenshot for your reference:
https://i.rankmath.com/A3LnAhHope that helps and please do not hesitate to let us know if you need our assistance with anything else.
once i uncheck it, is there any issue of duplicated content ? Does rankmath add any canonical tag to avoid this ?
Hello,
Yes, if you disable that option, the paginated page’s canonical URLs will point to the first page.
It is usually this way. Pointing the paginated pages to the main page using canonical helps in avoiding duplicate content issues.
I hope that helps.
Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.
just trying to understand, if I have blog archive page, with multiple pages and each page has different set of blogs, why does the issue of duplicated content happens ?
Hello,
If you set a canonical to https://website.com/blog, all the website’s content will be shifted to the previous page when you update the post and it will go on. You should consider optimizing the post and pages.
Although To change the canonical URL of the dynamically generated paginated pages on your site, you can use the following filter: https://rankmath.com/kb/filters-hooks-api-developer/#change-canonical-url
If you are not familiar with coding, kindly consult your developer to customize the filter for your situation.
Hope that helps. Thank you and please don’t hesitate to contact us if you need further assistance.
Sorry your answer is not clear. My use case is main page with blog archive showing 6 blogs, then at the bottom visitor clicks page 2, it shows the next 6 blogs and so on. So where is the duplicate content in my case ?
Hello,
Sorry for the delay and any inconvenience that might have been caused due to that.
In your case, there should be no issue with duplicate content. Pagination, if implemented wrongly, can hurt the SEO and cause a duplicate content issue. Like if you have both a “View All” page and paginated pages without a correct rel=canonical or if you have created a page=1 in addition to your root page.
I checked your site and your pages are paginated correctly. You can set the canonical URL of those pages as their URL.
Hope this helps. Let us know if you need any further assistance.
you mentioned “You can set the canonical URL of those pages as their URL”
How to set this up ?
Hello,
Please disable the Noindex Paginated Pages option from WP Dashboard > Rank Math > Titles & Meta > Misc Pages
The canonical URL should be the same as their URL.
Let us know how that goes.
Looking forward to helping you.
Please see the current settings below and check if correct. Please advise how to do so for category archive pages
Hello,
If you want to index the category archive pages as well you need to disable the option “Noindex Archive Subpages” from that same page.
After disabling that, the paginated archive pages will also be set to index.
Hope this helps clarify your doubts.
Don’t hesitate to get in touch if you have any other questions.
I am bit confused now. can you recheck what settings I should use. I want to keep pagination
Hello,
Thank you for your patience.
If you wanted your paginated pages and archive sub-pages to be set to index, you will need to disable the
Noindex Paginated Pages
andNoindex Archive Subpages
options.I hope that clears the confusion.
Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.
Hello,
We are glad that this ticket 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.
His question is simple, how can he put the canonical links to the paginated pages
For example domain.com/category/page1
How can I put a self-referencing canonical link to this page?
Solution provided from you as I understood: Enable index and follow from rank math then put this code in the theme function.php
/**
* Allow changing of the canonical URL.
*
* @param string $canonical The canonical URL.
*/
add_filter( ‘rank_math/frontend/canonical’, function( $canonical ) {
return $canonical;
});Can you explain the code with an example?
Thanks
You must be logged in to reply to this ticket.