Making WordPress.org

Changeset 11722


Ignore:
Timestamp:
03/30/2022 07:58:29 AM (2 years ago)
Author:
dd32
Message:

Robots: Disallow /plugins/search/* for now, as they're all noindexed.

This should discourage search engines from hitting endless noindexes & affecting their rate limits.

See #5323

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-robots.php

    r11094 r11722  
    2525        $robots .= "\nUser-agent: *\n" .
    2626                   "Disallow: /search\n" .
    27                "Disallow: /?s=";
     27                   "Disallow: /?s=\n";
    2828
    2929    } elseif ( 's-origin.wordpress.org' === $blog_details->domain ) {
    3030        // Placeholder for the s.w.org domain. See https://meta.trac.wordpress.org/ticket/5668
    31         // Intentional overwite of value.
     31        // Intentional overwrite of value.
    3232        $robots = "User-agent: *\n" .
    3333                  "Disallow:\n";
    3434
     35    }
     36
     37    // WordPress.org/plugins/search/* should not be indexed for now. See https://meta.trac.wordpress.org/ticket/5323
     38    if ( 'wordpress.org' === $blog_details->domain || defined( 'IS_ROSETTA_NETWORK' ) ) {
     39        $robots .= "\nUser-agent: *\n" .
     40                   "Disallow: /plugins/search\n";
    3541    }
    3642
Note: See TracChangeset for help on using the changeset viewer.