Title: Redirect Problem
Last modified: May 5, 2017

---

# Redirect Problem

 *  Resolved [kodame](https://wordpress.org/support/users/kodame/)
 * (@kodame)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/redirect-problem-31/)
 * Hello, I found your plugin this morning, I’ve read a fair amount of the docs,
   but I’m still running into a couple problems, any help would be appreciated.
 * First, let me briefly explain my setup… I have various pages I would like to 
   protect, and some not, which I have individually disabled protection.
 * I opted for separate login and registration pages, I disabled registration when
   the form loads on protected pages without being logged in.
 * I have a login page called /login with the following shortcode
    [wpmem_form login
   redirect_to=”/welcome-to-the-course”]
 * I have a registration page called /register with the following shortcode
    [wpmem_form
   register]
 * I have a profile page called /profile
 * I have assigned all 3 pages accordingly in the plugin settings.
 * The page /welcome-to-the-course is the first page I want users to see when logging
   in.
 * Now the problems;
 * 1. Upon registering I see the success message, and the login form appears, all
   good to this point. But when I login, immediately after registering, I am not
   redirected to /welcome-to-the-course as per the shortcode above, I remain on 
   the registration page, i.e. /register … wondering why it is not redirecting like
   all other login forms/actions?
 * 2. When I receive the welcome email, the link to the login page is wrong, it 
   appears as;
    [http://example.com/register/](http://example.com/register/) It 
   should really be; [http://example.com/login/](http://example.com/login/)
 * Thanks for building a really nice piece of software!
 * EDIT
 * Heads up, forgot to mention that your contact form on your site is not functioning
    -  This topic was modified 9 years, 1 month ago by [kodame](https://wordpress.org/support/users/kodame/).
    -  This topic was modified 9 years, 1 month ago by [kodame](https://wordpress.org/support/users/kodame/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Chad Butler](https://wordpress.org/support/users/cbutlerjr/)
 * (@cbutlerjr)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/redirect-problem-31/#post-9101938)
 * The login redirect in the shortcode only applies the login form displayed by 
   the shortcode (which based on your description I presume is [http://example.com/login](http://example.com/login)).
   If the page you’re on is not that, then the redirect doesn’t factor in.
 * If you want a global redirect for any login form instance, then use the wpmem_login_redirect
   filter to create a redirect.
    [http://rocketgeek.com/plugins/wp-members/docs/filter-hooks/wpmem_login_redirect/](http://rocketgeek.com/plugins/wp-members/docs/filter-hooks/wpmem_login_redirect/)
 * For #2, the email content installs as a default and should be considered an example
   of various shortcodes available. There’s no requirement that you use the shortcodes
   or that you keep any of the default content. Edit accordingly (put in the URL
   you want users directed to) in the Emails tab.
 *  Thread Starter [kodame](https://wordpress.org/support/users/kodame/)
 * (@kodame)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/redirect-problem-31/#post-9104290)
 * Than you very much, really enjoying this plugin, no doubt I’ll be moving to the
   paid version soon, appreciate your fair pricing model

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Redirect Problem’ is closed to new replies.

 * ![](https://ps.w.org/wp-members/assets/icon-256x256.png?rev=1226414)
 * [WP-Members Membership Plugin](https://wordpress.org/plugins/wp-members/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-members/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-members/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-members/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-members/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-members/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [kodame](https://wordpress.org/support/users/kodame/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/redirect-problem-31/#post-9104290)
 * Status: resolved