Skip to:
Content
Pages
Categories
Search
Top
Bottom

Redirect to specific messages when not logged in

Viewing 3 replies - 1 through 3 (of 3 total)
  • @emaralive

    Moderator

    Hi @antipole,

    It is difficult to say but, normally, there would be a redirect to the wp-login.php, given your example:

    https://mysite.org.uk/members/myusername/messages/view/572/

    The above would, normally, redirect to:

    https://mysite.org.uk/wp-login.php?redirect_to=https%3A%2F%2Fmysite.org.uk%2Fmembers%2Fmyusername%2Fmessages%2Fview%2F572%2F&bp-auth=1&action=bpnoaccess

    The redirect is due to a page that requires authentication and if not authenticated, there is an attempt to redirect to wp-login.php. Since this does not happen, it may be that your Redirect plugin is bypassing wp-login.php and redirecting to your 404 page, instead. I’m not sure if this is configuration issue with the Redirect plugin or just the way it works or if there is another cause.

    In a nutshell the flow is:

    1. bp_core_no_access()
    2. bp_core_redirect()
    3. wp_safe_redirect()

    @antipole

    Participant

    I have now traced this to the All in One WP Security plugin. If this is disabled, the URL does take me to the login and thence to the message.

    I will report it to AIOWPS.

    @emaralive

    Moderator

    OK, sounds good, I’m glad you were able to figure out the cause. May I consider this topic resolved?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar