WordPress.org

Ready to get started?Download WordPress

Forums

Buddypress on Subdomain htaccess (10 posts)

  1. I moved Buddypress from the main site on a Multisite install to a subdomain and added these rules to htaccess:

    RedirectMatch 301 ^/members/(.*)$ http://community.qiaccess.com/members/$1
    RedirectMatch 301 ^/groups/(.*)$ http://community.qiaccess.com/groups/$1
    RedirectMatch 301 ^/blogs/(.*)$ http://community.qiaccess.com/blogs/$1
    RedirectMatch 301 ^/forums/(.*)$ http://community.qiaccess.com/forums/$1

    which was a guess on my part because at Buddypress.org they offer for subdirectories, as in:

    RedirectMatch 301 ^/members/(.*)$ http://example.com/community/members/$1
    RedirectMatch 301 ^/groups/(.*)$ http://example.com/community/groups/$1
    RedirectMatch 301 ^/blogs/(.*)$ http://example.com/community/blogs/$1
    RedirectMatch 301 ^/forums/(.*)$ http://example.com/community/forums/$1

    But I still ccan't get to my Activity, Members, Forums, etc. Any thoughts?

  2. benbakelaar
    Member
    Posted 1 year ago #

    Does any webpage load? Or is there an error? Did you check the PHP erroor
    and Apache access logs?

  3. Hi Ben,

    Thanks for your questions. I've actually had to delete the htaccess rules above because they were causing infinite looping. As far as where I am now, well, everything appears normal, but the Activity Stream doesn't work, it just rewrites to the home page, and the Members are a bit messed up, ie the Members page works but clicking on any individual profiles takes me to the home page. So for now, I'm flummoxed. I do know that the Activity Stream that I had on the main blog has its links hardcoded in the database, so I'll need to fix that by hand. Other than that, who knows!?!

  4. Huh... That looks like it might be a conflict.

    RedirectMatch 301 ^/members/(.*)$ http://community.qiaccess.com/members/$1

    That would make an endless redirect, since it's always going /members/ points to /members/ points to /members/...

  5. Yeah, thanks, you are correct. It did cause and endless redirect and I deleted those lines anyway. The Activity Stream and the Members profiles are the things giving me fits. Groups and forums are fine.

  6. They're all going to have that problem. Notice how they all have the same pattern?

    You just can't do this:

    RedirectMatch 301 ^/members/(.*)$ http://community.qiaccess.com/members/$1
    RedirectMatch 301 ^/groups/(.*)$ http://community.qiaccess.com/groups/$1
    RedirectMatch 301 ^/blogs/(.*)$ http://community.qiaccess.com/blogs/$1
    RedirectMatch 301 ^/forums/(.*)$ http://community.qiaccess.com/forums/$1

    What's the REAL starting URL? is it http://community.qiaccess.com/members/ or http://qiaccess.com/members/ ? We can do someting with that :)

  7. If in Buddypress, the pages are set to

    Activity Streams > Activity
    Site Tracking > Sites
    Discussion Forums > Forums
    User Groups > Groups
    Members > QiMembers
    Register > Register
    Activate > Activate

    then what was

    hxxp://qiaccess.com/activity
    hxxp://qiaccess.com/sites
    hxxp://qiaccess.com/forums
    etc

    would now be

    hxxp://community.qiaccess.com/activity
    hxxp://community.qiaccess.com/sites
    hxxp://community.qiaccess.com/forums
    etc

  8. Okay :D Not insurmountable, but it will be a PITA.

    In http://halfelf.org/2012/htaccess-anarchy/ I explain how you can put a check for 'If the domain is qiaccess.com and the folder is activity, then go to ...'

    You'll want to use that method :)

  9. Thanks for the link. What a great and informative article! I think there are some issues, still, with Buddypress. As it turns out, it doesn't seem I need the rewrite rules, but Activity and QiMembers have their issues. I think this is related to hardcoding in the database by Buddypress. You don't happen to have an article on exporting/importing to alter links in the database, do you? Either way, you're a star!

  10. I do know how but... BuddyPress doesn't hardcore it into the DB. If you go into the BP settings, you can change the members and so n to different pages.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.