• Resolved shawnkelshaw

    (@shawnkelshaw)


    Dear Support,
    I need help redirecting from a buddypress site (using folders) login page to the main site’s login page. Let me explain the situation:

    WordPress Multisite (yes)
    2 sites
    First site is standard site (main site; need to use for all logins)
    Second site is Buddypress (using folders; not sub domains)

    Goal:
    If a user navigates or clicks a link that would normally take them to the login screen for the Buddypress site installation, auto redirect to the login screen for the first site (main). Always use first site’s login screen for all logins…

    So…
    mainsite.com/buddypressfolder/wp-login.php would always redirect to
    mainsite.com/wp-login.php

    Thanks for looking at this.
    s

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter shawnkelshaw

    (@shawnkelshaw)

    So after thinking about it a bit, would a 301 redirect setup in the htaccess file work?

    Something like:
    ———————

    # BEGIN WordPress

    # END WordPress

    redirect 301 /buddypressfolder/wp-login.php https://mainsite.com/wp-login.php
    ———————
    any objections to this? Thanks in advance…. s

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Put that code above the #BEGIN WordPress, but yes, it might work. There’s a possibility of a problem with people logging in directly to sites, tho.

    Thread Starter shawnkelshaw

    (@shawnkelshaw)

    Thanks Ipstenu!
    I moved the line above the #Begin declaration.

    What kind of concerns are there with people logging in directly to sites? Is there a forum post or KB article somewhere that you know of?

    I appreciate the feedback.

    s

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Well I log in to my sites at subdomain.domain.com/wp-login.php sometimes. If I have a mapped domain, due to the way cookies are handled by servers and browsers, I must be able to access mappeddomain.com/wp-login.php if I want to log in.

    I’m not sure if it’ll be an issue with BuddyPress and subfolder sites, though. I suspect it would be much less of an issue.

    Thread Starter shawnkelshaw

    (@shawnkelshaw)

    Hmmm… I see and thanks for the insight. So far so good though on the current setup with the 301. I’m going to mark this issue resolved and again, much thanks for the feedback. Let me know if I can return the favor sometime.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘redirect buddypress site login to main site login’ is closed to new replies.