Skip to:

Reversing subdomain activation to subdomain

  • after activating buddypress on a subdomain, I found it better if I activated it on the root blog, so I will not confuse my members.

    I tried to reverse the process, But I completely failed

    I tried the following maneuvers but non of them succeeded:

    1- I deactivated bp plugin and deleted it –> once installed and activated again it will be activated back on blog 3

    2- I droped the bp tables in the database, installed again but the same problem

    3- I added this code to wp-config:

    define ( ‘BP_ROOT_BLOG’, 1 );

    define( ‘BP_AVATAR_UPLOAD_PATH’, ‘/var/www/wp-content/blogs.dir/3/files’ );

    define( ‘BP_AVATAR_URL’, ‘hxxp://’ );

    and tried to activate bp plugin again

    it activated nicely and asked me to choose a theme for buddypress but once choosing a theme I see only a blank white page and I can’t access my dashboard even

    I get to it by accessing another blog and deactivating bp plugin to get through my dashboard

    so I tried another way

    I did all of the mentioned in addition to editing my .htaccess and adding the following codes

    RedirectMatch 301 ^/members/(.*)$$1

    RedirectMatch 301 ^/groups/(.*)$$1

    RedirectMatch 301 ^/blogs/(.*)$$1

    RedirectMatch 301 ^/forums/(.*)$$1

    but non of them helped

    I still have one option to delete blog 3, but I’m sure I will be stuck and No way to do it back

    I Know I’m asking too much but Please Help Me

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

  • r-a-y


    Sabuntu, no need to start a new thread.

    Anyway for this:

    define ( 'BP_ROOT_BLOG', 1 );
    define( 'BP_AVATAR_UPLOAD_PATH', '/var/www/wp-content/blogs.dir/3/files' );
    define( 'BP_AVATAR_URL', 'hxxp://' );

    – Change your BP_AVATAR_UPLOAD_PATH so it matches your server filepath, don’t use the example code listed in the guide.

    – Change the BP_AVATAR_URL to your domain and not the example code listed in the guide

    Is this site live at the moment? If you had BP installed on the root before, why not use revert to a backup (if you have one)?

    Thank you r-a-y for the illustration but I found another answer by Andrew the greatest

    You need to do the following:

    1) deactivate buddypress on the sub-blog

    2) remove all buddypress tables

    3) go into wp_sitemeta and remove all buddypress rows

    4) remove any of the lines you’ve added to wp-config.php for buddypress

    5) activate buddypress sitewide.



Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Reversing subdomain activation to subdomain’ is closed to new replies.
Skip to toolbar