Canonical pages for products.

#994593
  • Resolved S R
    Rank Math free

    Hello,
    In my Google search console has over 16,000 pages with the error
    “Alternate page with proper canonical tag”. This happened within the past few months and I cannot figure out why dynamic pages such as those with price variations or color variations are canonicalizing to the main page. I saw that this seems to be an issue with SEO plugins when I checked Google Gemini.

    Any suggestions for how to fix this? So now instead of having 28,000 pages indexed, which includes the variations, there are only 2600 indexed.

    Any help would be appreciated. Thank you

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

    We apologize for the issue you are facing with the "Alternate page with proper canonical tag" error in Google Search Console. This situation often arises when multiple pages, such as those with variations in price or color, are incorrectly canonicalized to a single main page.

    Here are some steps you can take to address this issue:

    1. Identify Affected Pages: Start by checking the list of pages that are showing this error in Google Search Console. You can find this under the Not indexed tab.
      Not indexed

    2. Review Canonical Tags: Ensure that the canonical tags on your product variation pages are correctly set. Each variation should ideally point to itself if it has unique content (like different prices or colors) rather than pointing to the main product page.
      Alternate page with proper canonical tag

    3. Update Canonical URLs in Rank Math: If you find that the canonical tags are incorrect, you can update them using the Rank Math plugin. Navigate to the product edit screen and adjust the canonical URL in the Rank Math meta box.
      Rank Math meta box

    4. Implement 301 Redirects: If there are duplicate pages that should not be indexed, consider implementing 301 redirects from those pages to the preferred version.

    5. Content Audit: Conduct a content audit to ensure that all pages provide value and are necessary for indexing. Remove or noindex any low-quality or duplicate content that does not serve a purpose.

    6. Monitor Changes: After making these adjustments, monitor your Google Search Console for any changes in indexing status over the next few weeks.

    For more detailed guidance on fixing this specific error, you can refer to our detailed guide here.

    If you continue to experience issues, please reply to this ticket with your site URL so that a human agent can assist you further. Thank you for raising this concern, and we hope this helps resolve your issue!

    Sources:
    Alternate Page with Proper Canonical Tag Status in Google Search Console » Rank Math

    S R
    Rank Math free

    This is occuring with variations which are dynamic so I cannot manually set a canonical for them. Rankmath is canonacalizing these to the main product page. This is the issue and I do not know how to undo it. There are for prices, colors and other variations of which I have 16000+ which are currently deindexed.

    Hello,

    In this case, you can use and customize this filter/code to set those parameterized URLs to noindex:

    add_filter( 'rank_math/frontend/robots', function( $robots ) {
    $url = home_url( $_SERVER['REQUEST_URI'] );
    if( (strpos($url,'?sku=') !== false) ) {
    $robots['index'] = 'noindex';
    $robots['follow'] = 'nofollow';
    }
    return $robots;
    });

    Here’s a guide you can follow to apply that:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    You can add the parameters of the prices, colors, and other variations aside from ?sku= so you can cover all of them.

    Looking forward to helping you.

    S R
    Rank Math free

    The thing is i would like them indexed, I just do not want them canonicalized to the main page. It was like that before and I was getting better traffic.

    Hello,

    We don’t recommend indexing these URLs as they can create duplicate content issues on your website and Google can penalize your site.

    However, if you still want to index them, you can use the following filter code to set self-referencing canonical URLs to these pages:

    add_filter( 'rank_math/frontend/canonical', function( $canonical ) {
        $current_url= "https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
        $canonical = $current_url;
        return $canonical;
    });
    

    Here’s how you can add filter/hook to your WordPress site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps and please don’t hesitate to let us know if you have any other questions.
     
    Thank you.

    S R
    Rank Math free

    Thank you.

    Hello,

    We are glad to be of help.

    Do you still need our assistance with anything else or can we go ahead to close the ticket?

    We look 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.

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

The ticket ‘Canonical pages for products.’ is closed to new replies.