How to Install a SSL Certificate on Your WordPress Site

//How to Install a SSL Certificate on Your WordPress Site

How to Install a SSL Certificate on Your WordPress Site

Every day, a huge amount of information is shared online. With more and more people switching to internet as their means of communication, banking and much more, many dark practices have also seeped into it. Hacking is not a new concept for people who have been using internet for some time. Such people would also know that any person who logs in or makes a purchase is vulnerable to hacking. This is where SSL and HTTPS come into play.

What exactly are SSL and HTTPS?

Both of these are security encryption which prevent hackers from stealing your personal and financial information. SSL stands for Security Socket Layer and HTTPS means Hyper Text Transfer Protocol Secure. All WordPress websites are HTTP; insecure. However, once you install SSL certificate to your WordPress website, it will show HTTPS  in the URL, signalling the user that he is in a secure site.

A unique SSL certificate is issued for every WordPress website that wants to be on a secured line or HTTPS, which browsers check for the purpose of verifying the Word Press website’s identity. It is like an ID card for your Word Press website. If a Word Press website pretends to be secured using HTTPs but there is no matching SSL certificate, the browser will warn you.  Still not sure why do you need an SSL certificate? Sit back and read on!


If you are running a business, or any WordPress website that collects user information, you need to install SSL certificate for your consumers’ protection. This becomes more critical if you are collecting payments online. Recently, Google announced that they’ll add SSL certificates and HTTPS in their ranking algorithm, which means secured websites will be given priority over the rest.

SSL is being used everywhere even for sites like Soliloquy, OptinMonster, Envira Gallery, and Syed Balkhi’s blog. For people who have yet to get an SSL certificate for their Word Press website, how SSL can impact a WordPress site’s speed, is a very common question. Well, it is negligible.

Requirements to Use HTTPS/SSL on WordPress Sites

The basic requirement to install SSL certificate to your WordPress site is fairly simple. You just need to purchase the certificate from your web host provider, which can range between $50 and $200 per year. Hoasted offers SSL certificates for one year starting at around $ 10 per year. Have a look here. You can easily install them yourself or choose to have it installed for you.

How to Setup WordPress to Use SSL and HTTPS

Supposing that your site is new and you want every page to be on SSL, you need to have your site’s URL updated. To do this, you need to go to Settings > General > and update your WordPress URL field.


Case 1: Running Site

If your site is already running, you need to set up a redirect for your WordPress site. You need to go to the .htaccess file from your folders and add this:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$$1 [R,L]

There is an area here that says Make sure you replace this with your actual site’s URL.


Case 2: Running Site on NGINX Server

If you are on nginx servers, the steps are different. Add this to the same file:


server {
listen 80;
return 301$request_uri;


Case 3: Running Site on Admin Page

To add SSL directly from your admin page, you need to log in and configure it in the wp-config.php file. First, you need to install a WordPress HTTPS (SSL) plug-in. Add the code below:


define('FORCE_SSL_ADMIN', true);

When you’re done with this, you will be asked to key in your SSL host, which can either be your domain name or your sub-domain name. If you bought shared SSL certificate, you will need the original host name from your web host provider.

The next option is to use Force SSL. Ticking this box will tell WordPress to only apply SSL on your selected pages. All other pages will show the usual HTTP. Ensure that you save the changes then visit the site to check if it works.


Simple right? Well, I am sure your head would’ve spun a little at the sight of these code snippets at the end, but just follow the steps like they’re mentioned and you’ll be done with adding SSL certificate to your WordPress website in the blink of an eye!

By | 2018-07-24T14:11:19+00:00 August 28th, 2015|0 Comments