Re: Subfolder now Root .com Folder
Try putting the code in wp-content/plugins/bp-custom.php.
I should add that this code is kind of a hack until BP adds some functionality to detect WP setups in subdirectories.
Also just wanted to add that this issue could already be fixed in BP 1.3 trunk due to the way BP now uses actual wordpress pages instead of a catch URI check.