• Thanks for the excellent plugin! I ran into an issue with the robots.txt file not pointing to our custom content directory and made a quick change to the plugin (at line 100) to check to see if WP_CONTENT_DIR is defined, and if so to use that instead of wp-content.

    if ( WP_CONTENT_DIR ) {
         $dirs = pathinfo( WP_CONTENT_DIR );
         $dir = $dirs['basename'];
    } else {
         $dir = 'wp-content';
    }
    
    echo "Disallow:\n";
    echo "Disallow: /wp-admin\n";
    echo "Disallow: /wp-includes\n";
    echo "Disallow: /wp-login.php\n";
    echo "Disallow: /" . $dir . "/plugins\n";
    echo "Disallow: /" . $dir . "/cache\n";
    echo "Disallow: /" . $dir . "/themes\n";
    echo "Disallow: /trackback\n";
    echo "Disallow: /comments\n";

    http://wordpress.org/plugins/network-privacy/

  • The topic ‘Custom wp-content locations’ is closed to new replies.