Unable to find correct Apache .htaccess rules for switchover to https

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • v-w
    Member
    • Aug 2018
    • 35
    • 5.3.x

    Unable to find correct Apache .htaccess rules for switchover to https

    After following https://www.vbulletin.com/forum/arti...forum-to-https letter by letter, I still need to define the correct rewrite rules for my Apache. After a few hours of poking at the server, I am giving up. vBulletin is not providing me with the login form. The sample rules in the default .htaccess file do not work.
  • bootsie1
    Senior Member
    • Jun 2017
    • 150
    • 5.3.x

    #2
    Change the setting in admincp settings/Site Name/URL/Contact Details


    Change the top 3 entries to https://yourdoman.com

    This should then switch over to https https







    Cometbar

    DartsLeague

    Comment

    • v-w
      Member
      • Aug 2018
      • 35
      • 5.3.x

      #3
      Thank you for trying to help, but that's already describes in https://www.vbulletin.com/forum/arti...forum-to-https and I did follow the procedure letter by letter. It will switch over the forum and then mess up the login form, because an additional redirect is needed, as is also described in that forum

      Comment

      • In Omnibus
        Senior Member
        • Apr 2010
        • 2310

        #4
        You should have the following in your .htaccess file:
        RewriteEngine On
        RewriteCond %{SERVER_PORT} 80
        RewriteCond %{HTTP_HOST} ^(www\.)?yourURL\.com
        RewriteRule ^(.*)$ https://www.yourURL.com/$1 [R,L]

        Comment

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

          #5
          If the rules provided in the .htaccess file that we provide do not work, then you will need to discuss this with your server administrator. What we provide should work in Apache 2.4. You simply need to uncomment the lines by removing the # at the beginning so it looks like this:
          Code:
          #To redirect users to the secure version of your site, uncomment the lines below
          RewriteCond %{HTTPS} !=on
          RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
          We provide a similar redirect for ISS 8+ in the web.config file.
          Code:
                          <!-- Remove this line for secure server redirection
                          <rule name="Redirect to https" stopProcessing="true">
                              <match url=".*" />
                              <conditions>
                                  <add input="{HTTPS}" pattern="off" ignoreCase="true" />
                              </conditions>
                              <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false" />
                          </rule>
                          Remove this line for secure server redirection -->
          If you are not using Apache 2.4 or IIS 8+, then again you will need to discuss this with your Server Administrator.
          Translations provided by Google.

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

          Comment

          Related Topics

          Collapse

          • Craig
            htaccess redirect
            by Craig
            I'm not at all familiar working with htaccess. But I recently set my site to ssl and want to redirect. I have found the redirect code for http to https, but which htaccess file gets modified ( I assume...
            Fri 17 Mar '17, 2:17am
          • rustybucket
            Too Many Redirects
            by rustybucket
            I searched the forum and couldn't find an answer to this question, so I thought I would through this out here:

            On bighuskerfan.com/vbbs, if I have "Route Channels and Conversations by...
            Wed 2 Aug '17, 5:16am
          • blade00
            http to https login issue
            by blade00
            Hi, I tried to switch from http to https protocol, the SSL certificate has already been installed from the hoster.
            When I try to change the 3 addresses from http to https on vbulletin admin options...
            Wed 19 Jul '17, 1:38am
          Working...