admin redirects to http when forum is set to https

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • codeleakers
    New Member
    • Sep 2011
    • 8
    • 4.1.x

    admin redirects to http when forum is set to https

    I have everything set correctly regarding the site URL. The rest of the forum functions correctly. There are no http/https redirects via .htaccess.

    however, everytime i change a setting in the admin cp im redirected back to http://www.mydomain.com/admincp.

    how do i redirect it correctly to the https protocol?
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 73976

    #2
    There are no settings to determine https or http in vBulletin. It will rely on the Forum URL as stated in the AdminCP under Settings -> Options -> Site Name / URL / Contact Details. It either points to https or http.

    If you do want everything to accessible under https only and have that enforced across the board, then you should have an .htaccess redirect to handle that.
    Translations provided by Google.

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

    Comment


    • codeleakers
      codeleakers commented
      Editing a comment
      the acp is not directing to he URL indicated in the contact details settings page. so where does it get that URL from?

      i see the answer you give is a blanket statement, do you actually know what youre talkin about or do you get your information from a book? ive tried every way to get the acp to redirect correctly to no avail.

      where is the acp getting the HTTP protocol from when i have to set to HTTPS??
  • codeleakers
    New Member
    • Sep 2011
    • 8
    • 4.1.x

    #3
    the acp is not directing to he URL indicated in the contact details settings page. so where does it get that URL from?

    Comment

    • codeleakers
      New Member
      • Sep 2011
      • 8
      • 4.1.x

      #4
      finally got it, with no thanks to the support staff. for anyone running this off their own server with a load balancer here's your .htaccess redirect for the /admincp folder

      Code:
      RewriteEngine On
      RewriteCond %{HTTPS} !=on
      RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC]
      RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]











      Comment

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

        #5
        Default installations of vBulletin work with the AdminCP redirecting to the URL it was accessed from. Information about the Load Balancing in the first post would have helped with a better resolution.
        Translations provided by Google.

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

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...