Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Permalinks setup with WP intalled in subdirectory and index.php in root


sueme
Participant

@sueme

I’m currently running an active site, and having followed the instructions in https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory I’ve got all my files in a mysite/wordpress file with everything in the wordpress folder but the index.php and .htaccess files in the home directory. that’s given the whole of my site a mysite address rather than a mysite/wordpress address.

This sites been up a while and works well, but I’m having trouble getting BuddyPress to work on it. Whatever I try, I seem to end up with half the site still on mysite (whilst everything in mysite/wordpress is coming up unobtainable); or half the site on mysite/wordpress (whilst everything in mysite is unobtainable).

Am I right in thinking that I can simply add the following to wp-content/plugins/bp-custom.php or is it more complicated than 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');

There’s quite a bit of activity on the site, so I don’t want to start from scratch, but I would like to get BuddyPress on it.

Skip to toolbar