• For the record, I’ve been researching this for hours before finally resorting to posting for help. I’m trying to figure out how to redirect users to my main page after completing registration, as opposed to being directed to the wordpress login page. I’ve looked all over the place and was unable to find a solution. I was able to ascertain that WP 3.0 added redirect functionality to registration and password reset pages, but I couldn’t figure out anything beyond that. Any assistance would be HUGELY appreciated. I am using Theme My Login, however, as I learned, that doesn’t help with the completed registration redirect.

    Thanks in advanced.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Well, just throwing this out there, don’t know if it works: in your wordpress root directory locate wp-register.php (backup the file) and replace this:

    wp_redirect('wp-login.php?action=register');

    With this:

    wp_redirect('../');

    Try that and tell me what happens.
    * Note: You may need to change wp_redirect(‘../’); judging on where your wordpress install is located, wp_redirect(‘../’); should work if wordpress is the sole root.

    Thread Starter amplitudeMC

    (@amplitudemc)

    Thanks so much for the fast response. My wordpress is definitely my root, but this didn’t work. The end result was the same, after completing registration I’m taken to the wp_login page.

    Wait, just to clarify – you did say you were using a plugin for your login’s correct?

    Thread Starter amplitudeMC

    (@amplitudemc)

    Yes I’m using Theme Your Login, however, that doesn’t offer any customizations for the registration redirect. In fact, I found multiple posts from people asking for that customization, but it hasn’t been built into the plugin.

    Try this, note: It may not work because my file is modified. BACKUP YOUR FILE.
    Open wp-login.php in root and find:
    <title><?php bloginfo('name'); ?> ? <?php echo $title; ?></title>

    Add underneath:
    <meta HTTP-EQUIV="REFRESH" content="0; url=<strong>PATH-TO-YOUR-OTHER-LOGIN-FORM</strong>">

    Note, I know you wanted to redirect to your main page but this MAY work temporarily redirecting users to the login form you want to use

    Thread Starter amplitudeMC

    (@amplitudemc)

    Am I adding that? or replacing the <meta http=… that’s already there?

    Add it underneath:
    <title><?php bloginfo('name'); ?> ? <?php echo $title; ?></title>

    Thread Starter amplitudeMC

    (@amplitudemc)

    Ahhh I see what this is doing, and it’s totally a viable solution. Only problem is, for some reason, the tags are showing up in the URL, other than that it’d work fine. It flashes the wordpress login page for a split second, but that’s really not a big deal at all, particularly considering you only register once.

    Thread Starter amplitudeMC

    (@amplitudemc)

    LOL nm, i figured it out. I’ve been at this for too long. Thanks so much man, that totally works. You rule!

    No Problem ?? Glad I could help, if you ever want to revert just remove that line, comment it out or replace it with default and that should work fine ??

    hey amplitudeMC, I am having the same problem with Theme My Login plugin and am trying to redirect to my home page. What did u do to make it work in the end? I’ve been pulling my hair out for the past two days…
    HELP!

    wp-login.php Used to be the page which displayed the registration form. This file is no longer used in WordPress and is deprecated.

    So how to customize registration redirect page, also the welcome email directs to ../wp-login.php?checkemail=registered and I would like it to goto my home page

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Registration Page Redirect?’ is closed to new replies.