---
title: "How To Easily Migrate WordPress Site from HTTP to HTTPS (No Bulls**t)"
url: https://hostmy.blog/how-to-migrate-wordpress-http-to-https/
date: 2018-07-16
modified: 2026-11-10
lang: en
author: "Rajendra Zore"
description: "Chrome has marked every HTTP page as \"Not secure\" since Chrome 68 in July 2018, and visitors notice. This guide shows you how to move a WordPress site from HTTP..."
categories:
  - "How To"
tags:
  - "HTTP to HTTPS"
  - "Migration"
  - "WordPress"
image: https://hostmy.blog/wp-content/uploads/2026/11/hmb-card-680-plum-1024x538.jpg
word_count: 1278
---

# How To Easily Migrate WordPress Site from HTTP to HTTPS (No Bulls**t)

Chrome has marked every HTTP page as "Not secure" [since Chrome 68 in July 2018](https://security.googleblog.com/2018/02/a-secure-web-is-here-to-stay.html), and visitors notice. This guide shows you how to move a WordPress site from HTTP to HTTPS in plain steps: back up, switch the URLs, redirect old links, fix mixed content and update your tools.

## INDEX

- What is HTTP & HTTPS?
- Benefits of HTTPS
- Before Migration Steps
- Migration from HTTP to HTTPS
- After Migration Steps
- Bonus Tip

## 1. What is HTTP & HTTPS?

In a simpler word, Hypertext Transfer Protocol (HTTP) is a communication method between a web browser and a web server. Whereas Hypertext Transfer Protocol Secure (HTTPS) is a method which uses an encrypted HTTP connection by transport-layer security. That means all the communication over HTTPS is encrypted ensuring the secured flow of private information over the web.

## 2. Benefits of HTTPS

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

- **SEO:** Google treats HTTPS as a site move and says permanent redirects such as 301 do not cause a loss in PageRank and that its guidance aims to minimise negative impact. See [Google's guide to site moves](https://developers.google.com/search/docs/crawling-indexing/site-move-with-url-changes).
- **Security:** The communication between a web browser & a web server will be secured.
- **Performance:** HTTPS lets browsers use HTTP/2, which can improve load times. See [MDN on HTTP/2](https://developer.mozilla.org/en-US/docs/Glossary/HTTP_2).

## Migration from HTTP to HTTPS

### 3. 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. For why a backup is only useful once you have restored from it, read [the WordPress backup that did not restore](https://hostmy.blog/wordpress-backup/).

- [UpdraftPlus](https://wordpress.org/plugins/updraftplus/) - It's a freemium plugin & our team uses it. The only downside is you need extra disk space & enough server resources when it is compressing the files before sending them to the remote location.
- [WP Time Capsule](https://wptimecapsule.com/) - It is a paid plugin for incremental backups with quick restore points. Its site currently offers a 30-day free trial, so check its page for current terms before you buy.
- [BlogVault](https://blogvault.net/) - This is one of the high-end premium backup plugins. You can automate the incremental backups, stage the site, restore to any previous date etc...and all this without putting any load on your hosting server. This is one of our options to ensure daily backups for clients on a [WordPress care plan](https://hostmy.blog/wordpress-care-plan/). We also use their security (WAF) product, MalCare.

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](https://letsencrypt.org/2014/11/18/announcing-lets-encrypt.html). 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.

We recommend the following 3rd party hosting providers that offers free SSL certificate with their hosting plans:

- [A2 Hosting](https://hosting.com/) - Check its current plans before you buy.
- [SiteGround](https://www.siteground.com/) - Check its current plans and renewal prices before you buy.

Hosting choices also affect speed and rankings; see [does hosting affect SEO](/does-hosting-affect-seo/).

If for any reason you can't switch your current hosting provider, then either check Positive SSL by Comodo (check with your hosting provider to see if your site is hosted on SNA Enabled Server which is required to install the CA Bundle via cPanel) OR the last option is using [Flexible SSL by Cloudflare](https://www.cloudflare.com/products/ssl/). These 2 options are only recommended for blogs & personal sites.

### 4. Steps to Migrate WordPress site from HTTP to HTTPS:

Once you have taken the backup & ensured the SSL certificate on your server - you can now move ahead with the actual migration 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

![WordPress Settings, General screen with the WordPress Address and Site Address fields set to https](https://hostmy.blog/wp-content/uploads/2018/07/site-url.jpg)

2) Go to Plugins -> Add New -> Search & Install **[Better Search Replace](https://wordpress.org/plugins/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/Replace***

*Always keep the *Run as dry run* option checked when running the first search-replace.

![Better Search Replace form searching for http://hostmy.blog/, replacing with https://hostmy.blog/, with dry run ticked](https://hostmy.blog/wp-content/uploads/2018/07/search-replace-urls.jpg)

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
# BEGIN SSL REDIRECT
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# END SSL REDIRECT
Changing URLs as well? Read how to [change WordPress permalinks](/change-wordpress-permalinks/) without breaking links.

![cPanel File Manager opening the .htaccess file for editing](https://hostmy.blog/wp-content/uploads/2018/07/edit-htaccess.gif)

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

![Chrome address bar showing a padlock and the word Secure before https://hostmy.blog](https://hostmy.blog/wp-content/uploads/2018/07/padlock.jpg)

### 5. After Migration:

1) There are chances that you may not see a padlock the first time you enable SSL. This is due to the mixed contents on your web page. It means that one or more of your images, css, js etc files are being served from an HTTP. To find mixed content, open the page, press F12 and check the Console for "Mixed Content" warnings. Then update each listed file to load from HTTPS. [MDN explains mixed content](https://developer.mozilla.org/en-US/docs/Web/Security/Defenses/Mixed_content) in more detail. As per our experience with blogs, mostly these are images on your sidebar. The moment you update the protocol from http:// to https:// - it is resolved.

Some prefer [Really Simple SSL](https://wordpress.org/plugins/really-simple-ssl/) to force HTTPS & fix mixed content errors but that is not updating your database. You want to update all your URLs to HTTPS & not just depend on a script to mask it. Besides, this whole plugin process can affect your site's performance too.

2) If you are using **CDN** then update the Origin URL to HTTPS.

![CDN settings with the origin URL changed to https](https://hostmy.blog/wp-content/uploads/2018/07/origin-url.jpg)

3) Add the HTTPS property to **Google Search Console**.

Go to Search Console Dashboard -> Click on Add A Property -> Enter Full URL with HTTPS -> Add & Verify the Property (using the preferred method).

![Google Search Console, from the Add a property screen to the message that ownership of https://hostmy.blog/ is verified](https://hostmy.blog/wp-content/uploads/2018/07/gsc-property.gif)

Next is to add an updated **Sitemap** to the newly added property in Search Console. We use SEOPress Plugin for OnPage & it has generated an XML Sitemap.

![Search Console Sitemaps screen with the Item submitted message after adding the sitemap](https://hostmy.blog/wp-content/uploads/2018/07/gsc-sitemap.gif)

4) Finally, update your analytics. Universal Analytics has been retired; if you still have an old property, follow our guide to [upgrade from Universal Analytics to GA4](/upgrade-from-ua-to-ga4-and-integrate-looker-studio/). In GA4, open Admin, then under Data collection and modification choose Data streams, click your web stream and check that it is the stream for your https site and shows incoming data. Some ranking or traffic movement can happen for a while after a move.

Afterwards, [audit your WordPress site](/website-audit-wordpress/) for broken links and missing redirects. For redirects, indexing and rollback checks on a bigger move, use the [site migration SEO checklist](https://hostmy.blog/site-migration-seo-checklist/).

### 6. Bonus Tip

Before you call it all done, make sure you change the site version to HTTPS on your social accounts & other places like Google Ads, your backlinks from other websites (as you notice) etc.

Lastly, if you are using a social share plugin, you may notice that the share counts have been reset to zero. The 'share count recovery' is a premium feature on most of the known plugins. If the counts are really important for you then we recommend [Easy Social Share Buttons for WordPress Plugin](https://codecanyon.net/item/easy-social-share-buttons-for-wordpress/6394476) that is a paid plugin (check the CodeCanyon page for the current price). It comes with a share count recovery & other important modules.

### Your Experience

So, have you migrated your WordPress site from HTTP to HTTPS? Would you like to share your personal experience & what would you like to learn next?

### Professional Assistance

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

[Hire Us](https://hostmy.blog/)