Announcement

Collapse
No announcement yet.

Mixed vBulletin Content Appearing Following Change from HTTP to HTTPS

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

  • Mixed vBulletin Content Appearing Following Change from HTTP to HTTPS

    Hello,

    I'd like to get rid of the "unsecured" padlock modern browsers show when navigating to my site, so I requested my web host install an SSL certificate, which they've since done. vBulletin is the only content I have on my site, so I figured if I can change all the necessary links to HTTPS, that should take care of it. I found the instructions for converting a vB forum to https (changing the forum URL, confirming remote jQuery is set to Google and rebuilding the styles), and I've followed the instructions for version 4 (I'm running 4.2.5). When I navigate to my site using the https version, it shows a padlock with an exclamation point due to mixed content. Looking at the Firefox console, I have the following messages:

    "Loading mixed (insecure) display content .../favicon.ico" on a secure page
    "Loading mixed (insecure) display content .../forums/images/Logo_main.gif" on a secure page

    I realize the favorite icon is not a vB file, but the GIF is the logo shown on every vB page. How can I make the necessary adjustments so that my site shows as a secure site? Thanks in advance.

  • #2
    Add the following to your .htaccess file:


    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    It will force https on all content.

    Comment


    • Wayne Luke
      Wayne Luke commented
      Editing a comment
      vBulletin 4 doesn't use an .htaccess file on a default install so many people won't know what this is.

  • #3
    Thanks for the quick response. I was actually able to get it working without messing with the .htacess file by modifying the hard coded URLs in the StyleVar section, and now all is well. Thanks again.

    Comment

    Related Topics

    Collapse

    Working...
    X