How to Move HTTP to HTTPS on WordPress

What is HTTPS . HTTPS is a hyper text transfer protocol for secure communication over a computer network which is widely used on the Internet.

HTTPS or Secure HTTP is an encryption method that secures the connection between users’ browser and your server. This makes it harder for hackers to eavesdrop on the connection. WordPress owners are migrating from

HTTP to HTTPS, mainly due to the 4 following reasons:

  1.   Google announced that sites using HTTPS will get a slight ranking factor in Google search.
  2.   HTTPS is more secure and your visitor’s data is entirely encrypted. we share sensitive data like credit card and bank information or login credentials dozens of times per day.
  3.  HTTPS build trust and honesty by enabling the green padlock sign in the visitor’s web browser address bar.
  4. If user is visiting a website from HTTPS and going to an HTTP website, the referral data is lost in Google Analytics. If visitor goes from an HTTPS website to another HTTPS website, the referral data is still passed.

Move WordPress Site to HTTPS Follow steps one by one :

Steps 1: Back Up Your Website

Before starting to implement ssl in need to take backup of your all files and database also. this is very helpful for you in case something goes wrong you can go back to the working version.

Steps 2: Implement Your SSL Certificate
Check ssl certificate is installed in your server or not. if you not fount please installed first ssl certificate on your server. when your server is fully integrated with ssl follow next all steps for wordpress.

Steps 3: Add HTTPS to the Admin Area

Open wp-config.php in your WordPress root folder and add the following line somewhere.



This line allows WordPress to force SSL / HTTPs in WordPress admin area. you can check with login your admin its shows the green lock in brows with some mixed content error.

Steps 4: Update the Site Address
After moving the WordPress backend to HTTPS,Now You can do that by updating your site address under Settings > General.

https urlchange How to Move HTTP to HTTPS on WordPress

Change Both wordpress address and site address (Put your website address with https like

Steps 5: Change Links in Content and Templates

Now you need to update any links in your content and database that include the old HTTP protocol. be careful! If handled incorrectly, they can also screw up your site. Good thing you made that backup earlier, right? change your links to // instead of https://. They will then create relative links themselves!

Steps 6: Implement 301 Redirects in .htaccess

We will use .htaccess that is in the WordPress root directory. This is the name of an important file on your server. Its contains settings for our permalinks. normally its hidden file in our root directory. open it and put the below code.



From now,All visitors (including Google bots) should automatically land on the HTTPS version of WordPress site.

Steps 7: Testing the site and update environment:

After following all steps you will see your website running on https like the green lock sign you will see this means its implemented successfully.

1. Update you sitemap with https
2. Update Web masters
3. Update Analytics

if you see mixed content warning this is the most common problems that arise after move website to HTTPS are mixed content warnings. This happens only when the browser finds non-secure links on an otherwise secure page. you need to go on your page and update all non secure link to secure links with all cdn library and all links.

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face – we are here to solve your problems.

I, Dayanand Saini,the founder and chief editor of,have been working as a software engineer from last 4+ years. It's my hobby to learn new things and implement on live environment.

Leave a Reply

Your email address will not be published. Required fields are marked *

7 + = 12

%d bloggers like this: