Skip to:
Content
Pages
Categories
Search
Top
Bottom

BP on subdomain and new blog registration URL


  • Boone Gorges
    Keymaster

    @boonebgorges

    I’m doing an experiment with BP (1.2RC1 at the moment) on a subdomain, so that my main site is something like boone.com and all BP stuff happens at awesome.boone.com. For now I’m not really advocating widespread BP use on this particular project, so I’m instructing all new users to register their accounts and blogs on boone.com/wp-signup.php.

    Despite this, I’ve had a few people discover awesome.boone.com/register and awesome.boone.com/blogs/create. The problem is that when they register new blogs, the blogs are given URLs relative to awesome.boone.com, eg myblogrulz.awesome.boone.com, when I would rather they have myblogrulz.boone.com.

    What’s the best way to make this happen on the BP side? Can I use switch_to_blog somewhere so that site_url() is set correctly? Will doing it in the template be enough, or do I also have to tinker with bp-core/bp-core-signup.php? Or am I missing an existing config setting?

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

  • Windhamdavid
    Participant

    @windhamdavid

    couldn’t you just redirect in the page template for the sub install with wp_redirect()

    awesome.boone.com/register > boone.com/register.


    Boone Gorges
    Keymaster

    @boonebgorges

    Well, boone.com/register doesn’t exist at the moment, but I wonder if it would work to just move the registration templates from bp-default to my main blog’s theme directory and then do the redirect you just mentioned. Should work, as long as BP is activated sitewide. Hmmmm. Ill give it a try.


    r-a-y
    Keymaster

    @r-a-y

    I’m wondering about the exact same thing (only for subdirectories and not subdomains!)

    Since using a subdirectory install is less obvious than a subdomain (eg. example.com/community/register vs. example.com/register), I might just theme the register page so it matches my root blog.

    But, I’d love for you to figure this out, Boone!


    Windhamdavid
    Participant

    @windhamdavid

    is testing and it appears you’ll need to wp-signup in the root of where the registration page is without hacking the core.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘BP on subdomain and new blog registration URL’ is closed to new replies.
Skip to toolbar