No announcement yet.

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

  • Filter
  • Time
  • Show
Clear All
new posts

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

    After following 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.

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

    Change the top 3 entries to

    This should then switch over to https https




    • #3
      Thank you for trying to help, but that's already describes in 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


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


        • #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:
          #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.
                          <!-- Remove this line for secure server redirection
                          <rule name="Redirect to https" stopProcessing="true">
                              <match url=".*" />
                                  <add input="{HTTPS}" pattern="off" ignoreCase="true" />
                              <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false" />
                          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 - Full / Mobile
          Vote for your favorite feature requests and the bugs you want to see fixed.


          Related Topics


          • NumNum
            htaccess redirect
            by NumNum
            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, 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