Moving WordPress Website from HTTP to HTTPS/SSL

Google recently announced that it has started using HTTPS as a ranking signal. So if you want to move your blog or website from HTTP or HTTPS to get high ranking in google search then you need to follow these steps .

Make sure you have purchased valid SSL certificate from your Hosting providers , Now all hosting provider provide SSL certificate , Some provide SLL for free where as some providers may charge you for giving SSL certificate.

HTTPS URLs begin with https:// and use port 443 by default, whereas HTTP URLs begin with http:// and use port 80 by default.

HTTP is insecure and is subject to eavesdropping attacks, which can let attackers gain access to sensitive information of a website whilst HTTPS is designed to withstand and secure against such attacks.

To make a website HTTPS, firstly get an SSL certificate for the domain, install it on the server and change the website permalinks from http to https.

Config WordPress for HTTPS Step by Step

Step 1
Login to your WordPress dashboard and navigate to Settings > General.
Ensure that the WordPress Address (URL) and Site Address (URL) are https. If not, add S after http to make https and save it.


Step 2
Open wp-config.php and below line to force all logins and all admin sessions to happen over SSL

define('FORCE_SSL_ADMIN', true);

Step 3.
Set up a 301 permanent redirect and inform Google of the URL change.

RewriteEngine on
RewriteCond %{HTTP_HOST} ^ [NC,OR]
RewriteCond %{HTTP_HOST} ^ [NC]
RewriteRule ^(.*)$$1 [L,R=301,NC]

Use Redirect WordPress Plugin

If you don’t know how to perform this then you can do this using wordpress https redirect plugin but make sure you have installed SSL certificate on your site and HTTPS is working correctly
Step 4
Tell Google about the change in URL, Re-add your WordPress site to Google webmaster tool With https://