Announcement

Collapse
No announcement yet.

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

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #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


    • #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


      • #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


        • #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 customization and demonstration site.
          vBulletin 5 Documentation - Updated every Friday. Report issues here.
          vBulletin 5 API - Full / Mobile
          I am not currently available for vB Messenger Chats.

          Comment

          Related Topics

          Collapse

          Working...
          X