http to https login issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • blade00
    Member
    • Apr 2016
    • 69
    • 5.1.x

    #46
    I tried but It's the same, if I don't use this:
    Code:
    RewriteCond %{HTTP:X-Forwarded-Proto} !https
    RewriteCond %{HTTP_HOST} ^www.
    RewriteCond %{HTTPS} off
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
    the website goes down... Thanks

    Comment

    • Wayne Luke
      vBulletin Technical Support Lead
      • Aug 2000
      • 73976

      #47
      Then replace the two lines we provide with the four lines they provide. All of that shouldn't be necessary but we don't know how the server is configured and have no control over that configuration.
      Translations provided by Google.

      Wayne Luke
      The Rabid Badger - a vBulletin Cloud demonstration site.
      vBulletin 5 API

      Comment

      • blade00
        Member
        • Apr 2016
        • 69
        • 5.1.x

        #48
        The problem is that by using their 4 lines, I still have the issue of login box that doesn't work...
        Attached Files

        Comment

        • Wayne Luke
          vBulletin Technical Support Lead
          • Aug 2000
          • 73976

          #49
          You shouldn't be trying to access your site by http:// at all. It won't work if you have it configured for SSL. However, it seems their redirect isn't working either because the URL should immediately change to HTTPS if it isn't using that.
          Translations provided by Google.

          Wayne Luke
          The Rabid Badger - a vBulletin Cloud demonstration site.
          vBulletin 5 API

          Comment

          • blade00
            Member
            • Apr 2016
            • 69
            • 5.1.x

            #50
            It's strange that the redirect works with other CMS but it doesn't work for vbulletin... I'm not trying to access to http, but I need to activate it in order to unlock the forum as https doesn't work. Thank you.

            Comment

            • Mark.B
              vBulletin Support
              • Feb 2004
              • 24286
              • 6.0.X

              #51
              Originally posted by blade00
              It's strange that the redirect works with other CMS but it doesn't work for vbulletin... I'm not trying to access to http, but I need to activate it in order to unlock the forum as https doesn't work. Thank you.
              Redirects from http to https are handled by the server, not vBulletin. If there was a vBulletin bug causing this, we’d have hundreds of customers reporting it.

              You need to speak to your hosts.
              MARK.B
              vBulletin Support
              ------------
              My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
              My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

              Comment

              • blade00
                Member
                • Apr 2016
                • 69
                • 5.1.x

                #52
                I'm speaking also with my host, thay say that hundreds of thousands customer are using https redirect without issue on their server... By searching on google I find a lot of people claiming for https settings on vbulletin that don't work...
                Last edited by blade00; Wed 31 Jan '18, 12:38am.

                Comment

                • Mark.B
                  vBulletin Support
                  • Feb 2004
                  • 24286
                  • 6.0.X

                  #53
                  Originally posted by blade00
                  I'm speaking also with my host, thay say that hundreds of thousands customer are using https redirect without issue on their server... By searching on google I find a lot of people claiming for https settings on vbulletin that don't work...
                  If I had a dollar/pound/whatever for every time a host said it wasn't their issue and blamed the software, I'd be a very rich man.

                  The simple fact is - vBulletin DOES NOT handle the http to https redirect. It is done by the server.
                  There aren't 'a lot of people claiming https settings don't work', there are people who didn't know how to set it up and we wrote a DETAILED GUIDE to explain how to do it.

                  If EVERY step in that guide is followed 100%, it will work. Unless there are configuration issues on the server.

                  I have personally helped over a hundred customers get https working. It works on all the cloud sites as well. Yet your host says it's a bug in the software. You should ask them to elaborate on how they think vBulletin is breaking their platform, after all they will have server logs that will pinpoint exactly what's going on.

                  MARK.B
                  vBulletin Support
                  ------------
                  My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
                  My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

                  Comment

                  • blade00
                    Member
                    • Apr 2016
                    • 69
                    • 5.1.x

                    #54
                    My hoster says that the issue is not on server configuration, but on vbulletin error message: Unable to redirect to the correct login URL... They say that all the other sites work with https, there is just this issue with vbulletin...

                    Comment

                    • blade00
                      Member
                      • Apr 2016
                      • 69
                      • 5.1.x

                      #55
                      Could you please help me to understand why this error appears: "Unable to redirect to the correct login URL. This usually means that the login URL is incorrectly configured for this site. Please contact the administrator for further help." on the login box?
                      My hoster asks me to verify with you as for them it's not possible that this message is shown for "server configuration issues". Thanks

                      Comment

                      • Mark.B
                        vBulletin Support
                        • Feb 2004
                        • 24286
                        • 6.0.X

                        #56
                        Originally posted by blade00
                        Could you please help me to understand why this error appears: "Unable to redirect to the correct login URL. This usually means that the login URL is incorrectly configured for this site. Please contact the administrator for further help." on the login box?
                        My hoster asks me to verify with you as for them it's not possible that this message is shown for "server configuration issues". Thanks
                        The login URL should be exactly the same as the Frontend URL in the Settings. You can change this by going to the AdminCP directly, logging in and changing it under Settings -> Options -> Site Name / URL / Contact Details.

                        See the below screenshot. The three URL settings MUST be in the exact format below, including the '/core' at the end of the third one.

                        Click image for larger version

Name:	Capture.JPG
Views:	110
Size:	51.8 KB
ID:	4385627
                        MARK.B
                        vBulletin Support
                        ------------
                        My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
                        My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

                        Comment

                        • blade00
                          Member
                          • Apr 2016
                          • 69
                          • 5.1.x

                          #57
                          In this case the 3 urls are correct, do you know why the error: "Unable to redirect to the correct login URL. This usually means that the login URL is incorrectly configured for this site. Please contact the administrator for further help." appears?

                          Comment

                          • Mark.B
                            vBulletin Support
                            • Feb 2004
                            • 24286
                            • 6.0.X

                            #58
                            Originally posted by blade00
                            In this case the 3 urls are correct, do you know why the error: "Unable to redirect to the correct login URL. This usually means that the login URL is incorrectly configured for this site. Please contact the administrator for further help." appears?
                            It's the same problem - the http to https redirects are not working. They are generating an invalid URL. There is very little else we can suggest other than to speak to your host. Our recommended rewrite rules for this work on practically every other server. There is something either misconfigured, or simply configured differently, server-side.

                            If I had to guess, the way they have rewrites configured probably ends up conflicting with the default vBulletin rewrite rules (which are necessary whether you have https or not), but that's pure speculation. Server configuration is outside the scope of the support we can provide.

                            Since https works fine in and of itself, and only breaks when you try to redirect http to https, this is absolutely a problem with the way rewrites are configured on the server.
                            MARK.B
                            vBulletin Support
                            ------------
                            My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
                            My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

                            Comment

                            • Mark.B
                              vBulletin Support
                              • Feb 2004
                              • 24286
                              • 6.0.X

                              #59
                              In case it helps, I'll post what I use on my demo site, which is slightly different from the default, this handles both the http to https and also non-www to www.

                              Code:
                              RewriteEngine On
                              
                              RewriteCond %{HTTPS} off
                              RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
                              
                              Options +FollowSymlinks
                              RewriteEngine on
                              RewriteCond %{HTTP_HOST} !^www\. [NC]
                              RewriteRule .? http://www.%{HTTP_HOST}/%{REQUEST_URI} [R=301,L]
                              
                              RewriteCond %{HTTP_HOST} ^example.com$
                              RewriteRule ^(.*)$ "https\:\/\/www\.example\.com\/$1" [R=301,L]
                              MARK.B
                              vBulletin Support
                              ------------
                              My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
                              My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

                              Comment

                              • blade00
                                Member
                                • Apr 2016
                                • 69
                                • 5.1.x

                                #60
                                thank you but also this code doesn't work on my site, the hoster says that It's not a redirect issue, I think I'll never solve it.

                                Comment

                                Related Topics

                                Collapse

                                Working...