You’re in all probability questioning why your web site hasn’t modified to HTTPS regardless of already buying and putting in an SSL certificates correctly. I’m right here to let you know that you simply might need forgotten a step – you want to drive the web site to load by HTTPS.

Worry no extra. In this text, I’ll present you the step-by-step directions on how to drive the web site to load safely by way of HTTPS.

What is an SSL certificates?

SSL is brief for Secure Socket Layer, and it’s a protocol crucial to set up a safe connection between a server and a shopper. The certificates encrypts web site information so that in switch, intruders can’t learn or tamper with delicate information exchanged between web sites and browsers.

According to Hostinger, you may get an SSL certificates for free with a internet hosting plan, such because the WordPress internet hosting package deal. The package deal additionally contains a straightforward one-click set up button to get the SSL up and working instantly.

Why do you want an SSL certificates?

An SSL certificates is essential for web sites that count on a whole lot of guests and handles loads of delicate transactions. According to the General Data Protection Regulation, websites that fail to shield buyer information could also be fined up to €20 million.

That is why eCommerce platforms are SSL protected to safeguard transactions between service provider and buyer. SSL will encrypt delicate information equivalent to bank card numbers throughout switch in order that malicious third-parties can’t reap the benefits of the data.

Additionally, SSL safety is a search engine rating issue. If you need to give your web site the very best possibilities of reaching excessive SERP positions, you have to have an SSL-enabled website.

Lastly, it’s an indication of belief. Visitors are way more seemingly to browse a website and buy from companies that present that they care about their information safety by motion.

I’ve already put in an SSL certificates. Now what?

Now you’d want to drive the site visitors to undergo the safe connection. When it’s already in impact, you will notice a inexperienced padlock on the leftmost of the URL tab, and your web site hyperlink will start with HTTPS.

I’ll listing a step-by-step information on how to do it on common platforms (together with WordPress and Other PHP CMS).

1. Use the .htaccess file

You can start with configuring the settings in the .htaccess file that’s situated in your website’s information. Almost each web site that’s hosted on Apache or LiteSpeed server (Including WordPress, Joomla, Drupal, and different CMS [content management system]) makes use of .htaccess for instructions and server-level directions.

You’d want to entry your website’s information by a file supervisor and discover the .htaccess file that’s situated beneath the Files class. From right here, you’d want to edit the file, add the code beneath, and put it aside to drive HTTPS redirection for it:

RewriteEngine on
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^www. [NC]
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} !^www. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

This code will be certain that all your hyperlinks are rerouted completely to HTTPS. This contains the hyperlinks to your website from different folks’s websites.

2. Define URL in the database

The aim in this step is to change your URL to HTTPS in the database so it doesn’t load by way of HTTP anymore. The approach to do that is to change the URL information in MySQL.

If you’ve gotten a number of databases and also you’re unsure which one is related to the positioning you need to change, go to the management panel and open the File Manager. Select the area title and click on Go to File Manager.

After that, open the wp-config.php file and search for DB_NAME. The code subsequent to it’s the web site’s database title.

Then, go to phpMyAdmin utilizing the management panel choices. From the left panel (the place all your databases are listed), choose the one that’s related to the positioning, and click on the SQL tab.

In the SQL tab, enter the SQL question beneath and click on on Go to replace the URL to the HTTPS model:

UPDATE wp_options SET option_value = substitute(option_value, '', '') WHERE option_name="home" OR option_name="siteurl";UPDATE wp_posts SET guid = substitute(guid, '','');UPDATE wp_posts SET post_content = substitute(post_content, '', '');

UPDATE wp_postmeta SET meta_value = substitute(meta_value,'','');

Note: You should pay attention to the and, and Replace the with the present web site handle and the with the HTTPS handle.

After urgent the Go button, the URL adjustments would instantly take impact, and the modified rows will seem with a checkmark on the facet to present that the change is in impact.

Lastly, you’d want to confirm the adjustments by utilizing the wp_options desk and verify option_value. You ought to see the brand new URL beneath the column.

In case you get error messages, verify if there are syntax errors and guarantee that you’re utilizing the proper desk prefix. If the issue persists, do contact your internet hosting help.

3. Change URL In WordPress Dashboard

This step may be very easy, log in to your WordPress web site and click on on Settings, go to General Settings. There, you will notice an editable column every for the WordPress Address (URL) and Site Address (URL).

Change the URL from HTTP to HTTPS in the 2 columns and ensure each have the identical handle. Click Save Changes to ensure you have saved the brand new settings.

4. Change the URL in wp-config.php

In this final step, you may be forcing the HTTPS handle by wp-config.php, which incorporates all of the essential settings to your WordPress website. You can discover wp-config.php in the foundation folder of your web site.

You can edit the wp-config file by connecting to your web site utilizing an FTP shopper. Add this code simply above the road that claims ‘that’s all, cease modifying! Happy publishing.’

outline( 'WP_HOME', '' );
outline( 'WP_SITEURL', '' );

Replace ‘yoururl‘ with the website’s area title, and also you’re set.

Finally, save the adjustments and add the information again to your server. Congratulations, now your web site hundreds securely by HTTPS.


An SSL certificates is essential to safe information switch between servers and browsers. It encrypts information throughout switch utilizing the general public key, and solely the server that has the personal key can decrypt the message.

Without an SSL certificates, malicious third-parties might reap the benefits of unencrypted information throughout switch, particularly when it’s delicate information equivalent to bank card numbers. It is a should for web sites that deal with transactions to equip their website with an SSL certificates.

To ensure that your web site and all hyperlinks load in HTTPS, you want to configure a number of settings. First, verify the .htaccess file and enter the suitable code to reroute the web site and all present hyperlinks to HTTPS.

Then, change the URL in the database in order that the principle URL doesn’t load in HTTP. Open phpMyAdmin in the MYSQL database, enter the mandatory SQL question to change the URL and save the brand new settings to run the adjustments.

Finally, change the URL in the WordPress dashboard and put the code wanted for the wp-config file. Save the adjustments, and your web site will load in HTTPS completely.

I hope this text helps, if there are any questions, don’t hesitate to go away them in the feedback part beneath.