Re: FAQ: How To, Code Snippets and Solutions
Standard WP – Getting rid of the “subdirectory” in permalinks when WP is installed in a subdirectory
Create a file called “bp-custom.php” in wp-content/plugins.
Paste this:
function my_bp_override_core_domain() {
$domain = get_bloginfo('url');
return $domain;
}
add_filter('bp_core_get_root_domain','my_bp_override_core_domain');
Now, instead of having: mysite.com/subfolder/activity, you have: mysite.com/activity.