WordPress.org

Ready to get started?Download WordPress

Forums

Registration Page Redirect? (13 posts)

  1. amplitudeMC
    Member
    Posted 3 years ago #

    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.

  2. Discontinued Account
    Member
    Posted 3 years ago #

    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.

  3. amplitudeMC
    Member
    Posted 3 years ago #

    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.

  4. Discontinued Account
    Member
    Posted 3 years ago #

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

  5. amplitudeMC
    Member
    Posted 3 years ago #

    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.

  6. Discontinued Account
    Member
    Posted 3 years ago #

    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

  7. amplitudeMC
    Member
    Posted 3 years ago #

    Am I adding that? or replacing the <meta http=... that's already there?

  8. Discontinued Account
    Member
    Posted 3 years ago #

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

  9. amplitudeMC
    Member
    Posted 3 years ago #

    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.

  10. amplitudeMC
    Member
    Posted 3 years ago #

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

  11. Discontinued Account
    Member
    Posted 3 years ago #

    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 :D

  12. Lulifel
    Member
    Posted 3 years ago #

    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!

  13. Drain0
    Member
    Posted 3 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.