How to move from http to https

Discussion in 'Programming' started by Gfte44, Nov 2, 2017.

  1. #1
    Hi all.

    I have this site about bookingsystem. And as you can see its http, i do not have a webshop as we speak however, it might be developed, some time in the future. I´ve heard that google prefers https, so i have though about changing. Is there an easy fix to this and how long will it take? do i need my developer to do it or is it possible for one that knows just a little coding to do it?

    Thanks in advance
     
    Gfte44, Nov 2, 2017 IP
  2. Einheijar

    Einheijar Well-Known Member

    Messages:
    539
    Likes Received:
    13
    Best Answers:
    3
    Trophy Points:
    165
    #2
    https://letsencrypt.org/

    Depends on how little you know. It could be really easy if your script doesn't hardcode links. Could be a hassle if everything is hardcoded.
     
    Einheijar, Nov 2, 2017 IP
  3. bannersandlanders

    bannersandlanders Member

    Messages:
    27
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #3
    You should activate your SSL in your domain, once activated it will be https:
     
    bannersandlanders, Nov 2, 2017 IP
  4. phpmillion

    phpmillion Member

    Messages:
    145
    Likes Received:
    11
    Best Answers:
    4
    Trophy Points:
    45
    #4
    No, it will not. OP will need to "force" the use of https himself.

    Answer to the OP: it depends in your hosting. If your website runs on a cPanel based server, most likely it has LetsEncrypt plugin installed, which means your hosting provider can provide you with a free SSL certificate. Once SSL is generated for your domain, add this code to your .htaccess file:

    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
    Code (markup):
     
    phpmillion, Nov 2, 2017 IP