S2 set up with SSL vs NOT Causes Problems with Welcome Page

on my test sites, I did not load any plugins at all and when I created the WP using the https I got this problem of not being redirected to the welcome page. I deleted the test site, recreated it with http and it took me to the right page. So it looks like if I just get rid of the “s” in the setting page, all works as it should.
Don’t know why. LOL

Where is your test site located? On localhost, or on a paid host?

I run my site on SSL. no problems going to My Account page after login. Make sure you open the login widget and set redirect URL to My Account, or any page you want.

Hi Tim, could not answer you back as had reached my reply limit for the day, but did send you a personal message which you may have missed. I have hosting with Godaddy.

If you mean the redirect found on the S2 general options Login Welcome Page and the Special Redirection URL David, then I had tried that previously. It did not work. The only thing that does work right now is having changed https to http in the WP settings. All seems to be working correctly but thanks for your suggestion.

Marie,

I didn’t know we could do personal messages here, and I certainly haven’t been notified of any, so sorry about that! (I also didn’t know there were daily limits on replies.)

There are now three things that come to my mind that you could try.

  1. Contact GoDaddy and get them to check that everything is set correctly at their end. I’m afraid GoDaddy is the last host I’d recommend for WordPress hosting, and this sort of thing is typical with them. I have a friend who bought an annual hosting package with them before talking to me, and it was a nightmare. (Unfortunately, unless you have their Managed WP plan, the GoDaddy reps seem to know nothing about WordPress.)

  2. Make use of s2Member’s capability to force SSL on the LWP. See https://www.s2member.com/forums/topic/forcing-ssl/

  3. Add some code to your (child) theme’s functions.php file to force everything to redirect to https. This is the code:

    function webby_ssl_redirect() {
        if ( !is_ssl() ) {
            if ( strpos( $_SERVER['REQUEST_URI'], 'http' ) === 0 ) {
                wp_redirect( preg_replace( '|^http://|', 'https://', $_SERVER['REQUEST_URI'] ), 301 );
                exit();
            } else {
                wp_redirect( 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], 301 );
                exit();
            }
        }
    }
    add_action( 'template_redirect', 'webby_ssl_redirect' );

Obviously, depending how your functions.php page looks, you might need to wrap that in PHP tags.

1 Like

I am using S2Member Pro. I use the “built in” Login widget in the Main Side widget. (From the admin page go to Appearance-> Widgets) Click on the arrow to see the drop down settings for the S2Member Login Widget. adjust the redirect page. I hope this helps. Good luck.

1 Like

Thanks Tim, much appreciated.

@marieleo:

Try checking this s2Member setting WordPress Dashboard → s2Member → General Options → Login Welcome Page → Always Redirect non-Administrative Users (After Login) Using HTTP?. The default setting is No, but I’m lobbying WiebSharks to change it to Yes and to recommend full-site HTTPS for everyone. Having it set to No can result in some of the issues discussed in this KBA: http://s2member.com/kb-article/why-are-ssl-and-non-ssl-pages-logging-out-my-members/.