Reversing subdomain activation to subdomain

Inactive
  • 53 points
    Serious WPMU DEV-ster
    I'm new here
    Sabuntu

    Member  —  28th February 2010 (2 years ago)         

    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://community.example.com' );

    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/(.*)$ http://community.example.com/members/$1
    RedirectMatch 301 ^/groups/(.*)$ http://community.example.com/groups/$1
    RedirectMatch 301 ^/blogs/(.*)$ http://community.example.com/blogs/$1
    RedirectMatch 301 ^/forums/(.*)$ http://community.example.com/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