Last updated on August 28th, 2020 at 05:13 pm

In this post I will explain to you how we can Enable SSL on our website and also redirect or non-https WordPress blog to HTTPS(SSL) blog in simple steps.


Before we start implementing SSL you need to take a backup of your WordPress website and its database. You also need FTP access to update the configuration file of WordPress. You need SSH access to your server If you want to install Let’s Encrypt SSL certificate for your server.

Steps to redirect non-https WordPress to https(SSL)

Step 1. First, you need to install SSL in your server for your website you can get free SSL from Let’s Encrypt or you can use Cloudflare which is very easy to integrate.

Step 2. Now in your installed WordPress database, you need to update non-https link to https, go to wp_options table and update site URL value to non-https to https.

Step 3. Once you update the table you need to open wp-config.php and add below code on top of the file.

define('FORCE_SSL_ADMIN', true);
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')

Save the file and try to open your website.

WordPress SSL redirection using a plugin

You can use the Easy HTTPS Redirection (SSL) plugin to redirect non-https to https for your WordPress website.

I hope this helps you redirect your non-https WordPress blog to https.