Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: FAQ: How To, Code Snippets and Solutions


Gianfranco
Participant

@gian-ava

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.

via https://buddypress.org/forums/topic/permalinks-setup-with-wp-intalled-in-subdirectory-and-indexphp-in-root#post-43767

Skip to toolbar