The Easy Guide To Redirect HTTP To HTTPS In WordPress


Running an HTTP site is a risk nowadays. You need to move your business to HTTPS as it is considered more secure. All major Browsers display HTTPS sites with a padlock symbol that signifies the security of the connection to the site. So, you are now convinced to move to HTTPS, you buy an SSL certificate. Now what? How do you redirect your HTTP site address to HTTPS? This tutorial helps you do that.

Before you go ahead with any of the methods, we recommend you take a backup of your site so that you can revert to original state if something goes wrong. Check out 12 Best Backup Plugins for WordPress.

Here are the ways you can use to redirect from HTTP to HTTPS in WordPress:

A) Check Your WordPress Settings

Once you update your SSL certificate, the first thing you need to do is to update your WordPress settings.

  1. Go to Admin Dashboard>>> Settings

2. Select “General

3. Update WordPress Address (URL) and Site Address (URL)

4. Make sure you include “https://” in the URL.

B) For Nginx Server

NGINX


If your web server is running Nginx, then you can add the following code to Nginx config file to set HTTP to HTTPS redirect.

C) For Apache Server

apache

To set HTTP to HTTPS redirect on Apache server, add the following code to the .htaccess file.


D) For Litespeed Server

Litespeed is the 4th most popular web server. To configure an HTTP to HTTPS redirect on Litespeed, add the following code in “Redirect Rules” box.


Click “Save” once done.

E) Using the “Really Simple SSL” Plugin

really simple ssl

Really Simple SSL is a popular WordPress plugin that can be used to redirect HTTP to HTTPS. This plugin has more than 2 million active installations.

You need to follow these three simple steps:

  1. Get an SSL Certificate
  2. Activate “Really Simple SSL”
  3. Enable SSL with one click

The plugin replaces all http:// urls with https:// on your site.

So these were the quick ways to set HTTP to HTTPS redirect on your WordPress website. Do you have a suggestion for a plugin that can do this? Do let us know in the comments.

Related Post

Leave a Reply