Paginated pages – canonical URLs

#1122639
  • How to point the canonical URLs to point to themselves in case of paginated pages. I can not access page 2 og blog posts and set the URL in the advance section, since this is dynamic.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    I apologize for the issue you are facing with setting canonical URLs for paginated pages. In the case of paginated pages, it’s common to want each page to point to itself as the canonical URL to avoid duplicate content issues.

    Rank Math automatically handles canonical URLs for paginated pages by using the current page URL as the canonical URL by default. This means that you typically do not need to set them manually for each page in a paginated series. However, if you want to ensure that each paginated page points to itself, you can follow these steps:

    1. Check Automatic Canonical Settings: Ensure that Rank Math is set up correctly and is automatically adding canonical URLs to your paginated pages. You can verify this by checking the source code of your paginated pages to see if the canonical tag is present and pointing to the correct URL.

    2. Use the Advanced Tab: If you need to customize the canonical URL for specific pages, you can do so by editing the post or page in WordPress. Navigate to the Advanced tab in the Rank Math meta box and set the Canonical URL field accordingly. However, since you mentioned that paginated pages are dynamic, this may not be feasible for all pages.

    3. Noindex Paginated Pages: If you prefer not to have paginated pages indexed at all, you can set them to noindex. This can be done by going to WordPress Dashboard → Rank Math SEO → Titles & Meta → Misc. Pages and enabling the Noindex Paginated Single Pages option. This will prevent search engines from indexing those pages while still allowing them to be accessible for users.

    For more detailed guidance on setting canonical URLs, you can refer to our tutorial on Setting Canonical URLs in Rank Math.

    If you still have questions or need further assistance, please reply to this ticket, and a human agent from our support team will assist you further. Thank you for raising this concern!

    Sources:
    Setting Canonical URLs in Rank Math » Rank Math
    How to Fix ‘Duplicate Without User-Selected Canonical’ Status in Google Search Console » Rank Math

    This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.

    I have the canonical URLs to our paginated pages. But they are pointing to the main Blog page. But what I want is to make them point to themselves. I want them to be indexed. Hope to get a reply from a human agent.

    Hope to get reply from them. Thank you for your comment.

    Hello,

    Rank Math adds a self-referencing canonical URL by default for your paginated pages.

    However, if it is not working on your site, then you can try the following filter to force the self-referencing canonical URL of your blog pagination:

    add_filter( 'rank_math/frontend/canonical', function( $canonical ) {
            global $wp;
            $current_slug = home_url( $wp->request );
    
            if ( is_paged()) {
                    $canonical = $current_slug . '/';
            }
            return $canonical;
    });

    And here’s a guide on how you can add a filter to your website:
    https://rankmath.com/kb/filters-hooks-api-developer/

    If the issue persists, please share the pagination URL so we can check further.

    Hope that helps.

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this ticket.