• Resolved alexliii

    (@alexliii)


    Hello,

    I checked your offcial documents, but still not find clear answer, so, two questions please:

    1# For variable product, the url will show like this with product attribute filter:

    https://oursite.com/our-product-category/product-name?attribute_pa_color=green&attribute_pa_size=13-inch,

    Please note there is [attribute_pa_color=green&attribute_pa_size=13-inch] in the url.

    On Google search Console, I noted that some of the variations are indexed, but the parent product are not.

    I am quite confused what or how to handle the matter, should we index only either of parent product or variable products, or both of them please?

    I did not find a setting in Rankmath, how to do please?

    2# On Shop page and any custom category pages:

    (1) URL with Paginate pattern:

    When navigate the shop page, there will be paginate URL like this:

    https://themes.woocommerce.com/storefront/shop/page/2/

    Please note there is page/2/

    (2) URL with Filter pattern:

    Usually, there is a attribute filter site-widely on shop page, the url will be like the following:

    https://themes.woocommerce.com/storefront/shop/?filter_color=green

    Question please:

    Since I noted that both of Paginate and Filter patten url are indexed, but both of them are not in sitemap. So, why they are indexed please?

    The most important is, Should either Paginate or Filter URL to be indexed please? If not, what or how to do please?

    Overall, three points:

    1# URLs of variable product attribute filter

    2# URLs of Paginate and Site-widely Filter on Shop page or custom category pages

    Should they be indexed? or what does Google recommend?

    Since we did not found suggests or recommended setting in Rankmath or tutorial document, would you please clarify or provide a method to resolve it if applicable?

    Thanks so much, and have a nice day.

    • This topic was modified 1 year, 11 months ago by alexliii.
    • This topic was modified 1 year, 11 months ago by alexliii.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @alexliii,

    Thank you for contacting Rank Math support.

    The filter product URLs are generated by default while the users on your site search for specific products using filters. They shouldn’t be indexed on Google since they can cause duplicate content issues. As for the paginated pages, they can be indexed or de-indexed. There are no specific requirements or guidelines for these. It completely depends on the strategy you’re making for your site’s SEO.

    If you don’t want to index your paginated URLs, you can simply set them to noindex. And for the filtered product URLs, you can set the canonical to your parent products. In this way, Google will only index your parent products and avoid indexing filtered URLs. Alternatively, you can set the filtered URLs to noindex by using a filter like the one below:
    add_filter( 'rank_math/frontend/robots', function( $robots ) { $url = home_url( $_SERVER['REQUEST_URI'] ); if( (strpos($url,"?filter_color=") !== false) ) { $robots["index"] = 'noindex'; $robots["follow"] = 'nofollow'; } return $robots; });

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

    To noindex paginated pages, please follow this guide below:
    https://rankmath.com/kb/how-to-noindex-paginated-pages/

    Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.

    Thread Starter alexliii

    (@alexliii)

    Great thanks.

    And for the filtered product URLs, you can set the canonical to your parent products. In this way, Google will only index your parent products and avoid indexing filtered URLs. Alternatively, you can set the filtered URLs to noindex by using a filter like the one below:
    add_filter( 'rank_math/frontend/robots', function( $robots ) { $url = home_url( $_SERVER['REQUEST_URI'] ); if( (strpos($url,"?filter_color=") !== false) ) { $robots["index"] = 'noindex'; $robots["follow"] = 'nofollow'; } return $robots; });

    Is it the better practice or Rankmath recommended please? ??

    Much appreciate your guidance.

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @alexliii,

    The usual and most recommended way is to point the canonical to the parent product. Both options are available, you may choose the one you feel is appropriate for you.

    Please do not hesitate to let us know if you need our assistance with anything else.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Variation, Paginate and FIlter URL indexed ?’ is closed to new replies.