The latest challenge of web developers today is to move WordPress from http to https.
Google Chrome one of the most used browsers had declared months ago that the old http website will be notified as un-secure. Also, SEO can be compromised from the usage of http instead of https.
Https protocol makes your website data encrypted and transfers very secure
So it is so important to convert all our websites in https.
I will describe how we have made our website in https.
Configure Hosting for Https
In our case, we use a dedicated server on Digital Ocean. So we have to work on the server configuration to make possible the https.
We use Let’s Encrypt for the https certificates. The configuration is pretty easy for Nginx and Apache too. You can check the tutorials below:
In case of Bluehost you can configure the https very easily through the control panel:
Configure WordPress for Https
First you have to change the path of the site from http to https. Go to WordPress Dashboard > Settings > WordPress Address Url and Site Address Url
It is important to force the whole WordPress CMS like the WordPress Dashboard to work on https. Login into the ftp and edit the wp-config file.
There you have to write down the line below:
You have to replace all old http link on the database from http to https. In our case, we had used Velvet Blues Update Url
So after installation, we have put the Old URL field: http://codeless.co and in the New Url field: https://codeless.co/
After replacing all the links on the database everything should work without any problem.
Sometimes maybe you can experience some link that doesn’t change into https and in this case, you can see some errors on the browser.
This can be possible from some hardcoded URL that can be fixed by replacing it manually.
Stay safe ! 🙂