Author Topic: Migrating a website from http to https  (Read 12406 times)

Blicj11

  • Storm
  • *****
  • Posts: 3945
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Ventura 13.6 | Sharx SCNC2900 Webcam | WeatherCat 3.3 | Supportive Wife
Migrating a website from http to https
« on: February 28, 2017, 07:10:51 AM »
I have recently transitioned my website from http to https. I did this for a number of reasons, one of which is that the major browsers are warning visitors that a site contains unsecured data if it does not have a security certificate. Whilst that does not matter to most of us, because we are not taking credit card information or asking users to register with personal information, I do believe that such warnings will scare less-informed people away from looking at a site. All of the NWS and NOAA sites have moved or are in the process of moving to https. The Met Office is using https. Weathercloud is using https. WeatherUnderground has moved about half of its stuff to https.

Moving to https is not a trivial exercise! But it is doable; If I can do it, anyone can.

It's easy (and relatively inexpensive) to buy a security certificate and install it. The hard part comes after that. You have to chase down every http link in your site, internal and external, and change the references to https. This includes the scripts and other bits and bobs you might be running, including what's under the hood in the SteelSeries Gauges. I learned the hard way with SteelSeries that the gauges won't display until you go through each file and edit every http link.

When you are all done, you need to login to your Google Analytics account and change the setting from tracking http to track https. This allows you to start tracking https visits to your site without losing your history. Finally, you edit your .htaccess file to make a permanent redirect for requests on your site for http to https. There are some other things too, but I won't bore you.

Personally, I think this is something that Google (and others) forced on us, but since my site is the official site for our property owners association, I decided it would be easier to just make the move than to explain to everyone's grandmother that she won't lose her pension by checking the unsecured data on my weather page. I know you can tell people to just ignore the warnings or change your browser settings to turn off the warnings, but again, for me, in the long run it was just easier to convert the site to https.

Like most things I do, I was in over my head when I started, but I just Googled (using https sites only ;) ) how to migrate a site from http to https and by the time I was done, I had learned how to do it.

I still have three links left on my site that are http - all having to do with loading information from WunderGround or the National Weather Service, but I assume that those sites will sooner or later transition over. Mixed content (an https page that contains data loaded by http) by default is flagged as unsecured.

I am posting this just in case anyone else is trying to decide whether or not to make the jump. It seems quite daunting but really it just takes time to search through your site and edit every link. Fortunately, you don't have to change the way you FTP, as FTP is a separate protocol that works exactly the same with https. I also haven't had to make any changes to WeatherCat settings or preferences.

This is a weekend project that will take some time, but most of your sites will be much less complicated than mine because most of you are only loading weather data. If you've been thinking about it, I encourage you take the plunge. Your life will get better, your neighbors will be nicer to you, your dog will not bite you, Edouard will let you borrow his Buick, and you will like tracking the weather more than you do now. Or not.
Blick


wurzelmac

  • Storm
  • *****
  • Posts: 1363
    • ITIROLPR2
    • Wetterstation Pr?graten am Gro?venediger
  • Station Details: Davis Vantage PRO2 Plus (24h fan aspirated, wireless) with UV/Solar | Weather Envoy Data Logger | Mac mini 2023 M2 8/256 | 1x Canon EOS 1300D | macOS Sonoma 14.2
Re: Migrating a website from http to https
« Reply #1 on: February 28, 2017, 03:46:04 PM »
I too am very interested to go from http to https, but my provider wants a monthly fee for this that is not cheap in my eyes. Maybe here in Europe all internet things are a bit more expensive than in US. So I will wait with this hoping it will become cheaper in some future time.

But however very interesting to read what your expieriences have been whilst doing the transition. Thanks for sharing, Blick!
Reinhard


Blicj11

  • Storm
  • *****
  • Posts: 3945
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Ventura 13.6 | Sharx SCNC2900 Webcam | WeatherCat 3.3 | Supportive Wife
Re: Migrating a website from http to https
« Reply #2 on: February 28, 2017, 04:47:13 PM »
I didn't think about the cost, when I posted, Reinhard. It is minimal here. I am paying $US 35 or almost ?33 (or a little more than ?28) per year for the certificate.
Blick


xairbusdriver

  • Storm
  • *****
  • Posts: 3127
    • EW7115 (E7115)
    • KTNGERMA20
    • Mid-South Weather
  • Station Details: Davis VP2 wireless + remote Anemometer/2014 Mac min - 10.15.7/WC 3.0.5
Re: Migrating a website from http to https
« Reply #3 on: February 28, 2017, 05:06:25 PM »
Thanks for the update and info. It's always good to know who to run to for (FREE?!) help!!! [woohoo] I must assume you have 24/7 telephone support, also?

Seriously, I may need to check my browser settings but I can't recall ever getting a warning about a site being insecure. I have seen ones that require a log-in and are not encrypting my info (and that may actually be coming from 1Password...). Perhaps I just lead a sheltered interweb life?
THERE ARE TWO TYPES OF COUNTRIES
Those that use metric = #1 Measurement system
And the United States = The Banana system


wurzelmac

  • Storm
  • *****
  • Posts: 1363
    • ITIROLPR2
    • Wetterstation Pr?graten am Gro?venediger
  • Station Details: Davis Vantage PRO2 Plus (24h fan aspirated, wireless) with UV/Solar | Weather Envoy Data Logger | Mac mini 2023 M2 8/256 | 1x Canon EOS 1300D | macOS Sonoma 14.2
Re: Migrating a website from http to https
« Reply #4 on: February 28, 2017, 06:36:53 PM »
Lucky you,
a suitable certificate (that includes subdomains) is available for me at about ? 180/year - that is much more than I pay for the whole providing costs ...
Reinhard


mcrossley

  • Gale
  • ****
  • Posts: 273
  • Sorry, I'm not a WeatherCat user!
    • ICHESHIR25
    • Wilmslow Astro Weather
  • Station Details: Davis VP2 + home brew
Re: Migrating a website from http to https
« Reply #5 on: February 28, 2017, 08:46:01 PM »
Is Let's Encrypt not an option?
Mark

Blicj11

  • Storm
  • *****
  • Posts: 3945
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Ventura 13.6 | Sharx SCNC2900 Webcam | WeatherCat 3.3 | Supportive Wife
Re: Migrating a website from http to https
« Reply #6 on: March 01, 2017, 02:20:41 AM »
Yes, Mark, that is a free option, and its a pretty good one. Thanks for posting the link. Most free SSL certificates are valid for only 30 days and are for trial purposes. This one is valid for 90 days and can be renewed. It's a good option for a tight budget.
Blick


wurzelmac

  • Storm
  • *****
  • Posts: 1363
    • ITIROLPR2
    • Wetterstation Pr?graten am Gro?venediger
  • Station Details: Davis Vantage PRO2 Plus (24h fan aspirated, wireless) with UV/Solar | Weather Envoy Data Logger | Mac mini 2023 M2 8/256 | 1x Canon EOS 1300D | macOS Sonoma 14.2
Re: Migrating a website from http to https
« Reply #7 on: March 01, 2017, 02:18:45 PM »
Thanks Mark for posting this. Let's Encrypt is not supported directly by my provider (HostEurope), but I found a way to create a certificate: ZeroSSL done it, it provides a user interface to create a certificate via API to Let's Encrypt (if I catched this correctly). This certificate is fully free but to renew every 90 days as John pointed out properly.

But I think this was the easy part of the game. The next thing is transisting from HTTP to HTTPS...  [woohoo]
Reinhard


Blicj11

  • Storm
  • *****
  • Posts: 3945
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Ventura 13.6 | Sharx SCNC2900 Webcam | WeatherCat 3.3 | Supportive Wife
Re: Migrating a website from http to https
« Reply #8 on: March 01, 2017, 04:44:28 PM »
That's great, Reinhard. I will email you some helpful links on how to proceed.
Blick


wurzelmac

  • Storm
  • *****
  • Posts: 1363
    • ITIROLPR2
    • Wetterstation Pr?graten am Gro?venediger
  • Station Details: Davis Vantage PRO2 Plus (24h fan aspirated, wireless) with UV/Solar | Weather Envoy Data Logger | Mac mini 2023 M2 8/256 | 1x Canon EOS 1300D | macOS Sonoma 14.2
Re: Migrating a website from http to https
« Reply #9 on: March 01, 2017, 04:59:12 PM »
That's great, Reinhard. I will email you some helpful links on how to proceed.

Cool - much appreciated! In the meantime the certificate is uploaded to my provider, and one (very small) subdomain of mine is done: The tailoring of my wife.  :)
Very interesting: Firefox and Safari on my older iMac (Early 2009, OS X El Capitan) won't display it but Chrome does. The younger machines Mac mini and Macbook Air (both on Sierra) do have no problem to open this https site with any of the three browsers. So does a Windows 10 machine.  :-\
Reinhard


Blicj11

  • Storm
  • *****
  • Posts: 3945
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Ventura 13.6 | Sharx SCNC2900 Webcam | WeatherCat 3.3 | Supportive Wife
Re: Migrating a website from http to https
« Reply #10 on: March 01, 2017, 05:40:23 PM »
I just looked at the Mone site. I even watched the Apollo 16 video. Safari tells me that the wesbite is secure!

Gut gemacht.
Blick


Blicj11

  • Storm
  • *****
  • Posts: 3945
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Ventura 13.6 | Sharx SCNC2900 Webcam | WeatherCat 3.3 | Supportive Wife
Re: Migrating a website from http to https
« Reply #11 on: March 01, 2017, 05:42:44 PM »
Very interesting: Firefox and Safari on my older iMac (Early 2009, OS X El Capitan) won't display it but Chrome does.

Are you saying that they won't display the website at all or that they do not show the https version?

Are you using an older version of Safari?
Blick


wurzelmac

  • Storm
  • *****
  • Posts: 1363
    • ITIROLPR2
    • Wetterstation Pr?graten am Gro?venediger
  • Station Details: Davis Vantage PRO2 Plus (24h fan aspirated, wireless) with UV/Solar | Weather Envoy Data Logger | Mac mini 2023 M2 8/256 | 1x Canon EOS 1300D | macOS Sonoma 14.2
Re: Migrating a website from http to https
« Reply #12 on: March 01, 2017, 06:30:51 PM »
Are you saying that they won't display the website at all or that they do not show the https version?
They do not show the https version, at the meantime no http version available because I done the .htaccess file in the afternoon and all requests were redirected to https.

Are you using an older version of Safari?
Both browsers (Firefox & Safari) are up to date. Both browsers can show the https on other Macs (and Windows, of course).
Reinhard


Blicj11

  • Storm
  • *****
  • Posts: 3945
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Ventura 13.6 | Sharx SCNC2900 Webcam | WeatherCat 3.3 | Supportive Wife
Re: Migrating a website from http to https
« Reply #13 on: March 01, 2017, 06:38:34 PM »
They do not show the https version, at the meantime no http version available because I done the .htaccess file in the afternoon and all requests were redirected to https.

Edit your .htaccess file and take out the redirect until you figure it out. That way you can manually type in the site address and go back and forth between the two versions.

In the meantime, enter your site into this little site to see if it will reveal any missed links, etc.

https://www.whynopadlock.com/check.php
Blick


wurzelmac

  • Storm
  • *****
  • Posts: 1363
    • ITIROLPR2
    • Wetterstation Pr?graten am Gro?venediger
  • Station Details: Davis Vantage PRO2 Plus (24h fan aspirated, wireless) with UV/Solar | Weather Envoy Data Logger | Mac mini 2023 M2 8/256 | 1x Canon EOS 1300D | macOS Sonoma 14.2
Re: Migrating a website from http to https
« Reply #14 on: March 01, 2017, 07:04:04 PM »
John,

the last resort was a restart of the whole machine (iMac) and believe it or not, Safari & Firefox are doing fine now. So it must have been a cache problem with the system, not the browsers (I emptied the cache in there).

Conclusion to this:
All is fine with Mone.  [cheers1]
Reinhard