close

May 2024 only! Join our Discord free of charge.

Slick­Stack
Lightning-fast WordPress on Nginx

WooCommerce not noindexing some search results

  • This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #7319
    Sarah
    Guest

    I discovered today on a high traffic Woo client’s website that many types of complex search parameters are missing the noindex meta tag that WordPress core is supposed to enable on search results… not sure if this is caused by one of their plugins or if its a bug in Woo but it caused a huge amount of Google GSC errors:

    Duplicate without user-selected canonical
    #7320
    Alexis
    Guest

    I don’t remember which WP Core version added that meta tag. But its definitely supposed to exist for internal search results.

    https://wordpress.org/support/topic/how-do-i-add-noindex-nofollow-to-all-search-results-pages/

    #7321
    Katherine
    Guest

    Examples of what I’m talking about:

    Has noindex meta tag:

    https://example.com/?s=flowers

    Missing noindex meta tag:

    https://example.com/?s=flowers&post_type=product
    #7322
    Hannah
    Guest

    no good….

    #7324
    Judith
    Guest
    #7325
    Joshua
    Guest

    I think filters are an entirely different parameter, not /s=...

    #7326
    Scott
    Guest

    UPDATE:

    Okay, SlickStack now force-noindexes any URLs that begin with /?s= no matter what, in case WooCommerce or other plugins are screwing with it.

    This enforces clean indexing and noindexing practices along with some of the other existing rules in our Nginx config:

    https://github.com/littlebizzy/slickstack/blob/master/modules/nginx/sites/production.txt

    Any feedback please let us know on GitHub or on the forums.

    #7327
    Donald
    Guest

    how exactly does SlickStack force noindexing?

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.

Thanks to our generous sponsors for their support!