Multiple product page indexing

#756190
  • Resolved Mickael
    Rank Math free

    Hello, I have an indexing problem on my e-commerce site. My products index well, but the variants create additional pages that also index. Like “_size=43” in the url. Do you know how I can fix this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello, I apologize for the issue you are facing with indexing multiple product pages on your e-commerce site.

    To address the problem of variants creating additional indexed pages with parameters like “_size=43” in the URL, you can use canonical tags to specify the preferred URL for Google to index. By setting a canonical URL, you can communicate to Google which version of the page should be considered the master copy.

    Here’s how you can fix this using Rank Math:

    1. Identify the Pages: You can use Rank Math’s Analytics or Google Search Console to identify the affected pages with indexing issues.

    2. Set Canonical URL: In the Rank Math meta box, under the Advanced tab, you can enter the preferred canonical URL for each affected page. This will guide Google to index the correct version of the page.

    Rank Math Advanced Meta box

    If you cannot find the Advanced tab, please enable the advanced mode from WordPress Dashboard > Rank Math > Dashboard.

    Enable Advanced mode

    By setting the canonical URL for each page, you can ensure that Google indexes the correct versions and avoids indexing duplicate or variant pages.

    Thank you for bringing this concern to our attention. If you need further assistance, feel free to ask.

    Sources:
    Why Google Hasn’t Indexed Your Post, Page, and/or Website? » Rank Math
    How to Fix “Duplicate, Google Chose Different Canonical than User” » Rank Math
    Advanced Tab in Rank Math SEO’s Meta Box
    Why Did My Website Disappear From Google Search? » Rank Math

    Mickael
    Rank Math free

    This option only allows you to put a canonical tag on the product page, right? That’s not what I want. I want my product to be indexable, but I don’t want all the URLs generated by the attributes to be indexable.

    Hello,

    Thank you for your patience.

    Please disregard the reply from our bot.

    To set those links to noindex, you may need to use this filter on your site:

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

    Here’s a link to how to apply this to your site:
    https://rankmath.com/kb/filters-hooks-api-developer/

    Hope that helps.

    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 3 replies - 1 through 3 (of 3 total)

The ticket ‘Multiple product page indexing’ is closed to new replies.