The MU forums have moved to WordPress.org

Mystery redirect (7 posts)

  1. LarsS
    Member
    Posted 14 years ago #

    Hi,

    when I try to get to the register page, I get redirected to the login page. I deleted all cookies and tried it again, but no success. Entering the Url manually give me the same result. Why?

  2. VentureMaker
    Member
    Posted 14 years ago #

    Can you show actual URL?

  3. LarsS
    Member
    Posted 14 years ago #

    Hi,

    yes the link to the register form is: http://myurl/register

    The link i see in the browser bar, after clicking the link above:
    http://myurl/wp-login.php?redirect_to=http://myurl/register

    But it only redirects to wp-login.php even if the first link points to /register.....

  4. VentureMaker
    Member
    Posted 14 years ago #

    My guess is it's because it tries to find a post/page/blog register and it can't, so it redirects you.

  5. LarsS
    Member
    Posted 14 years ago #

    And what can I do, to get my register page working, again?

  6. VentureMaker
    Member
    Posted 14 years ago #

    If you want your signup page to be accessible from http://myurl/register add something like this to your .htaccess

    RewriteRule ^(register)$ wp-signup.php

  7. LarsS
    Member
    Posted 14 years ago #

    I added it, but it does not work. Maybe the reason for the Problem is buddypress?
    I updated to a new trunk and after that it happened, but I am not really sure.
    I still get the same redirect liek before. Maybe the reason are these lines in bp-core-catchuri.php

    --> if ( !$bp_path && !bp_is_blog_page() ) {
    if ( is_user_logged_in() ) {
    wp_redirect( $bp->loggedin_user->domain );
    } else {
    wp_redirect( site_url( 'wp-login.php?redirect_to=' . site_url() . $_SERVER['REQUEST_URI'] ) );

    But I´m not sure.

About this Topic