Switch from http to https with WordPress [Video]

Are you considering of migrating your WordPress website from HTTP to HTTPS and you do not have the faintest thought of how you can do it? Properly, you’re in the fitting place.

Google lately acknowledged that having an SSL certificate put in on your website will probably be a rating issue.

From what second the panic broke out!

Many individuals instantly made the migration very unexpectedly and roughly, others satisfied themselves that it was not essential.

A priori of all, I personally consider that the message was clear, the net is evolving, and slowly, over time, the HTTP: // protocol (due to this fact websites with out SSL certificates) will disappear.

Google tried to power the hand a bit, at first it unfold the rumor, then it did formally declared now very slowly it is going to begin benefiting protocol websites HTTPS to the detriment of these with protocol hit this till it’s now not wanted.

The purpose is that we’re obliged to maintain up with the occasions if we’re to maneuver ahead, as up to now websites which have refused to change to probably the most fashionable applied sciences and responsive have been slowly penalized, even on this case most certainly the identical will occur.

Migrating from HTTP to HTTPS it’s not that troublesome in the event you take the fitting precautions, actually bigger and extra complicated websites might have extra difficulties and it’s, due to this fact, essential to depend on an skilled, however for small/medium-sized web sites the method is sort of painless.

On this information, we are going to see how to do that with a website made in WordPress.

Come migrare da http a https con WordPress

We set up the SSL certificates

The very first thing to do is set up an SSL certificate right there are differing kinds, each paid and free open supply, some of the well-known is actually Let’s Encrypt.

You’ll be able to set up these certificates by following the directions on the official web site or, in the event you use a internet hosting come SiteGrounddirectly from cPanel with only one click on.

Furthermore, SiteGround has lately made obtainable a plugin that may make the entire course of that we’ll see any longer, automated, however truthfully, I’ve by no means used it but.

However, let’s transfer on

Let’s verify the standing

As soon as the certificate has been put in, let’s verify its standing from the positioning ssllabs.com. The end result ought to presumably be an A or an A +.

Let’s modify the canonicals

Given her common WordPress settings, we alter the deal with of our website da HTTP an HTTPS click on save and at this level we should always have been thrown out of the administrator panel.

We redirect to HTTPS

The following step will probably be to log into our website by way of FTP and open the file within the named root .htaccess.

Learn additionally: “Connecting Dreamweaver to WordPress”

Inside this file we’re going to copy this portion of code/command to make redirect of all pages to the HTTPS protocol:

RewriteEngine On
RewriteCond %HTTPS off
RewriteRule ^(.*)$ https://%HTTP_HOSTpercentREQUEST_URI [L,R=301]

Contained in the wp-config.php file as a substitute, we are going to copy this different piece of code:

outline('FORCE_SSL_ADMIN', true);
outline('FORCE_SSL_LOGIN', true);

We analyze the pages of our website

As soon as every little thing is completed, if we use Google Chrome because the default browser, we verify that the HTTP is inexperienced with the phrases “safe”, we browse our website far and large and if the wording doesn’t change it signifies that the certificates have been put in appropriately and that there aren’t any hyperlinks throughout the website with HTTP protocol.

Alternatively, if the HTTP message is grayed out we will probably be confronted with blended content material which signifies that in your website there are nonetheless hyperlinks with HTTP protocol.

Generally, these are hyperlinks inserted manually, maybe throughout the textual content or in widgets.

If we’re unable to change them by hand we should act instantly on the database.

In case you are sensible, you would instantly obtain the whole database of your website, modify it after which reload it.

Nevertheless, I don’t advocate this process.

Let’s modify the database

To hold out this operation in full security, you should use a database modification instrument.

So let’s go to the positioning interconnectit.com and obtain the instrument from the obtain merchandise.

We unpack the file and rename the folder to our liking

We add the file to our website by way of FTP (you’ll have to add the folder to the identical level the place all of the WordPress set up is current)

We are going to discover ourselves in entrance of a display screen like this:

Beneath “substitute” we insert the deal with of our website with HTTP beneath “with” as a substitute of the deal with with HTTPS

By clicking on “dry run” we are going to carry out a take a look at to confirm what will probably be changed, with “reside run” as a substitute we are going to proceed with the modifications.

As soon as all is completed, let’s not overlook to delete the folder simply loaded.

To do that you possibly can click on on the “delete me” button or delete the folder manually, I want the second alternative.

At this level, the SSL certificates ought to be put in appropriately.

Let’s do an extra verify

You can also make a closing verification by going to the positioning https://www.jitbit.com/sslcheck/# and by getting into the deal with of our website we will verify if there are nonetheless pages of our website with HTTP protocol.

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published.