• Home  / 
  • WordPress
  •  /  How To Easily Migrate WordPress Site from HTTP to HTTPS

How To Easily Migrate WordPress Site from HTTP to HTTPS

The buzz about Google Chrome marking all HTTP sites as “Not secure” has spread a certain amount of panic among the non-techie WordPress users & the site owners. Well yes, it’s true that in Chrome 68 (releasing in July’18), the omnibox will display “Not secure” for all HTTP pages. But, with this easy-peasy guide, you will learn how to migrate your WordPress site from HTTP to HTTPS.


What is HTTP & HTTPS?

In a simpler word, Hypertext Transfer Protocol (HTTP) is a communication method between a web browser and a web server. Hyper Text Transfer Protocol Secure (HTTPS) is the secure version of HTTP, the protocol over which data is sent between your browser and the website that you are connected to. The ‘S’ at the end of HTTPS stands for ‘Secure’. It means all communications between your browser and the website are encrypted.


Benefits of HTTPS

There is hardly any downside switching to HTTPS. Following points may clear the doubts:

The SEO Value

If your domain has the letters https in front of the www, then your site will have a clear advantage over those that are stuck with the old http. This fact comes direct from Google. Back in 2015, Gary Illyes revealed that if two web pages are equal in other respects, the Google search engine will always prefer those that are Hypertext Transfer Protocol Secure (HTTPS). Evidence from Mozcast bears that out. Between January and October last year, the number of sites that appeared in the top slot of Google searches that were https compliant rose from 25% to 40%.



Sites that don’t use HTTPS judiciously are crippling the privacy controls you thought were protecting your data. Websites’ adoption of opt-in sharing and straightforward privacy settings are laudable. Those measures restrict the amount of information about you that leaks from websites. Yet they have no bearing on sniffing attacks if the site doesn’t encrypt traffic. This is why sites like Facebook and Twitter recently made HTTPS always available to users who care to turn it on — it’s off by default.


Migration from HTTP to HTTPS

Before Migration:

1) Take a backup using one of the following recommended plugins. You can get away with only database backup but if you are not maintaining the regular site backups then it’s highly recommended that you take a full backup.

2) SSL Certificate should be installed on your hosting server. Thanks to Let’s Encrypt which has changed the game by launching the Free SSL Certificate. There are web hosts providing free SSL with their hosting plans however few are still reluctant to implement Free Let’s Encrypt SSL on their servers. Check if your hosting provider offers the Free SSL.

Steps to Migrate WordPress site from HTTP to HTTPS:


When you have taken the reinforcement and guaranteed the SSL certificate on your server – you would now be able to advance with the real movement process.


1) Go to your self-hosted WordPress Dashboard -> Settings -> General. Update the WordPress Address (URL) & Site Address (URL) from http://yourdomain.com to https://yourdomain.com


2) Go to Plugins -> Add New -> Search & Install Better Search Replace Plugin


3) Now, go to Tools -> Better Search Replace -> Search for http://yourdomain.com & Replace with https://yourdomain.com -> Select all tables -> Run Search


You can remove the plugin after successfully replacing the URLs.

4) 301 Redirect all your incoming HTTP links to HTTPS by putting the following snippet into your .htaccess file. Go to cPanel -> File Manager -> .htaccess -> Edit & Save

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # END SSL REDIRECT

If everything goes fine, you will see a green padlock in the browser address bar.


Does this intimidate you? We got your back. We offer this service to our customers.

About the author