finally figured out this SSL thing...

bremner Feb 10, 2019

  1. bremner

    bremner Staff Member

    6,266
    6,246
    106
    for over a year, we have had an SSL certificate running on the server. I edited contol files to force the site to redirect to https...I saw it do so, only to go back to http....

    Well, the Trainboard.com forum is located in a sub directory that had it's own control file.....once I added a redirect to that file, the SSL is read as it should be.

    There is no green lock due to some content loading as http, it is still secure...just not as pretty.
     
    Onizukachan, Atani and Hardcoaler like this.
  2. bremner

    bremner Staff Member

    6,266
    6,246
    106
    The items loading as http are the index, which makes no sense, and the ade which is most likely the module or a short code....all forms are now secure
     
  3. BoxcabE50

    BoxcabE50 HOn30 & N Scales Staff Member TrainBoard Supporter

    67,558
    22,733
    653
    I am still not quite certain how it all works. My own web site, via the host which apparently controls it, has visitors via both http and https. ???
     
  4. bremner

    bremner Staff Member

    6,266
    6,246
    106
    You have an SSL certificate, edit your .htaccess to have this script...


    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteCond %{HTTP_HOST} ^(www\.)?train-orders\.com
    RewriteRule ^(.*)$ https://www.train-ordes.com/$1 [R,L]
     
  5. BoxcabE50

    BoxcabE50 HOn30 & N Scales Staff Member TrainBoard Supporter

    67,558
    22,733
    653
    John- What does this rule create? A redirect of one to all SSL, or?
     
  6. bremner

    bremner Staff Member

    6,266
    6,246
    106
    it should force all of your files to www and behind your ssl
     
  7. BoxcabE50

    BoxcabE50 HOn30 & N Scales Staff Member TrainBoard Supporter

    67,558
    22,733
    653
    OK. Have added it.
     

Share This Page