Skip to:
Content

Ticket #2299: iis.patch

File iis.patch, 747 bytes (added by bsweeney, 4 years ago)
  • bp-core/bp-core-catchuri.php

     
    6161        foreach ( (array)$bp_uri as $key => $uri_chunk ) 
    6262                if ( empty( $bp_uri[$key] ) ) unset( $bp_uri[$key] ); 
    6363 
     64        /* Loop and remove index.php (e.g. for Windows IIS) */ 
     65        foreach ( (array)$bp_uri as $key => $uri_chunk ) 
     66                if ( $bp_uri[$key] == 'index.php' ) unset( $bp_uri[$key] ); 
     67 
    6468        if ( defined( 'BP_ENABLE_MULTIBLOG' ) || 1 != BP_ROOT_BLOG ) { 
    6569                /* If we are running BuddyPress on any blog, not just a root blog, we need to first 
    6670                   shift off the blog name if we are running a subdirectory install of WPMU. */