• Resolved Antipole

    (@antipole)


    Hi… on my bbPress site only logged in users can view most of the forums and topics. I am trying to use Redirect so that if a user follows a link to a forum or topic when not logged in, they are asked to login on the way there.

    I have set up a minimal pass redirection that matches a source URL of /forums/forum/.* Regex is ticked.
    The logged in URL is left blank and if the user is logged in, then they get to the forum as expected.
    If the Logged Out URL is set to
    /wp-login.php
    then as soon as a not-logged-in user strays into the forum structure, they get redirected to the log-in page. Great!
    However, if I have a Logged out URL of, for a simple example,
    /wp-login.php?redirect_to="/about/"
    I get a 404 error.
    [Eventually I want to redirect to the forum in the source URL but I have simplified this out while I trouble shoot the present issue.]

    If I post a URL into my browser of:

    https://mysite.com/wp-login.php?redirect_to=”/about/”

    it logs in and redirects as expected, so there is nothing wrong with the login and its redirection.

    It appears that the presence of the redirect in the target URL causes a pass through to the source URL as if not logged in, and this gets a 404 as access is indeed denied as the user is not logged in

    Am I missing something, or is this a bug or a limitation? I would appreciate some advice.

    PS I have all plugins disabled for these tests apart from\

    • BuddyPress 2.4.2
    • bbPress 2.5.8
    • Redirection 2.4.3

    thanks

    https://www.ads-software.com/plugins/redirection/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Problem with Redirection to login with redirection’ is closed to new replies.