BlogHow To'sOld Posts

How to set up free SSL (HTTPs) in WordPress

images 3 - How to set up free SSL (HTTPs) in WordPress

An encrypted WordPress site is very important in today’s world, chances are that if you read this blog you probably know a thing or two about https and why it’s becoming so popular, the keys being secured and Google pushing the implementation more and more with each update.

The standard way of transmitting data to and from the internet in what is known as HTTP 1.1 protocol is something that will sooner or later will become a thing of the past. With the ever increasing attempts at hacking, theft and rising privacy concerns of the technological world of today, the encrypted way of doing things is getting more and more important to the point that Google will penalize websites that are not secured.

When Google and several other companies put as their objective to change a technological paradigm, we better follow suit, specially if the points in argument are more than logical and needed.

HTTPS implementation will help prevent theft, will secure your WordPress site and will improve its visibility. The way Google decided to force this change is by a 2-way plan:

  • Display of a warning on Google Chrome for non secure sites.
  • Giving a slight increase in SEO visibility to SSL-enabled sites.


Table of Contents

Also Read:  The Nut Job 2: Nutty by Nature (2017) Review

Let’s Encrypt Plugin

So, you’re interested in going https with your WordPress installation?  This is your first step.

Get PlazaNG from the Amazon Appstore.

letsencrypt featured - How to set up free SSL (HTTPs) in WordPress

The plugin can be easily added from the WordPress Plugins directory or directly from your WordPress installation. You can search for it and enable it. Let’s see how it looks.

wp lets encrypt plugin 01 1024x574 - How to set up free SSL (HTTPs) in WordPress

The first thing to do is to load all the pertinent important information. It is highly advisable to fill the form properly with correct data because this will be stored in your certificate. The auto-generate certificate and expire warnings should be enabled.

Once you have everything in place, proceed to Register Account.  This will send the signal to Let’s Encrypt servers and will proceed to create your new certificate. Let’s Encrypt certificates have a validity of 60 days and will be auto-renewed if you keep your WordPress plugin in place.

wp lets encrypt plugin 02 - How to set up free SSL (HTTPs) in WordPress

Once the certificate is in place you can easily download the information so you can upload it to your hosting control panel, the routes will be easily visible and you can use any file explorer or even an FTP connection to extract those files.

There will be different procedures to upload and activate the certificate according to your control panel of choice but I will not cover those. I will show you the most widely used today, which is cPanel so you can get an idea.

Also Read:  Trace Studios to screen its first Nollywood production “Crazy, Lovely, Cool” in partnership with Film Africa

Install the certificate on cPanel

From your account panel you can go to your SSL/TLS settings

cpanel 01 - How to set up free SSL (HTTPs) in WordPress

You will proceed to go to Install and Manage SSL for your site.

cpanel 02 - How to set up free SSL (HTTPs) in WordPress

The first thing to do is fill the domain field and then you can easily copy-paste the contents of the certificate file, which will be the cert.pem that Let’s Encrypt plugin gives you and the Private key, corresponding to the private.pem file.

Once you have everything in place, the certificate should be enabled. The next step is to go into your WordPress installation and point it to the https version, like this:

wordpress ssl 1024x708 - How to set up free SSL (HTTPs) in WordPress

That’s it !. Your site should be running on https now !

But I’m getting mixed content!

Mixed content is something that will always happen after you switch your site and it will break your green lock display on all browsers. This happens when some of your assets are loaded over http and the problem with mixed content is that even a single asset loaded over http can break your green lock and penalize you for it so you should absolutely need to take care of it.

The solution can be as easy as an SQL query in your phpMyAdmin menu.

You need to replace the specific parts in your WordPress database that are currently pointing to your old http site version. This can be easily done with just 2 SQL queries. You need to copy paste this content and modify it with your domain and execute those queries in the SQL Query window of phpMyAdmin:

UPDATE wp_posts SET post_content = replace(post_content, 'http://www.yoursite.com/', 'https://www.yoursite.com/');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.yoursite.com/','https://www.yoursite.com/');

This piece of code will replace all the instances in the database that has http assets with the https version, you just need to replace the www.yourdomain.com  part of the code with your domain value and please, do a backup of your database before trying it !

Also Read:  Social Media Blogging and Commenting

Once you execute that query you should see the amount of links that got modified. If you’re using Divi don’t forget to modify the location of your Logo & Favicon with the https version since that data won’t get modified by these queries.

Conclusion

Implementing https on your WordPress site is easier than ever now and with a single query to your database you can fix any mixed-content errors and have your site running in SSL in no time. The later steps involves adding a new SSL domain in your Google Webmaster tools and Analytics and monitoring any 404 errors that may arise. There is no excuse to switch your site to Secure and be ahead of the changes that are coming.

Get PlazaNG from the Amazon Appstore.
Tags

Related Articles

Leave a Reply

12 thoughts on “How to set up free SSL (HTTPs) in WordPress”

  1. 168186 197431You could undoubtedly see your enthusiasm within the work you write. The world hopes for more passionate writers like you who arent afraid to say how they believe. Always go after your heart. 571517

  2. Just desire to say your article is as astonishing.
    The clarity in your post is just nice and i could assume you are an expert on this subject.
    Well with your permission let me to grab your RSS
    feed to keep updated with forthcoming post. Thanks a million and please continue the gratifying work.

Leave a Reply

Your email address will not be published. Required fields are marked *

error: Content is protected!!
Close