Skip to:

siteurl vs. home – getting the blog domain

  • anonymous



    I noticed Buddypress confuses the use of the WP “siteurl” and “home” variables.

    The following scenario applies to WPMU and BP 1.2 RC2.

    I have moved all my core WPMU files to their own directory instead of the root. This requires me to update the “siteurl” variable to point to those files. The “home” variable still points to the domain. (As recommended in

    Meanwhile, in bp-core.php, the bp_core_get_root_domain() description says: “@return $domain The domain URL for the blog.” However, the actual functions return the value of “siteurl” instead of “home.” In this case, “siteurl” is *not* the value of the domain. If I manual edit this core file to make the change the problem goes away.

    Otherwise, the result is that some links generated by BP, i.e. adminbar, look like http://domain/wpdir/members instead of http://domain/members (the addition of the <wpdir> folder).

    Can this be changed in the next release?

Viewing 6 replies - 1 through 6 (of 6 total)

  • Andy Peatling


    Please open a 1.3 milestone ticket for this.

    Andy Peatling


    In the meantime you could filter the output of the functions you believe are a problem.



    Opened a ticket:

    I will look into making a filter, thanks for letting me it could be done.

    Andrea Rennick


    Um, I commented on the ticket, but it’s been my understanding all along that moving MU out of the root just plain ol’ hasn’t been working. Like ever. It messes up the member blogs.



    This is a problem with regular WP, though. (WP 2.9.2 + BP 1.2.1)

    On shifting my WP files from the parent directory ( to a separate WP directory (, Buddypress URLs contain a /wp/ in them, by default.

    For instance, the admin profile url is Manually typing in will get you to the same page, without any errors, but all inks generated by BP contain /wp in them.

    this is now “fixed” and thankfully does corrupt the login option in the admin bar — unlike the wp_loginout() it does NOT generate the correct link to wp_login.php …

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘siteurl vs. home – getting the blog domain’ is closed to new replies.
Skip to toolbar