Black Friday Sale is Live: Get up to 30% OFF RankReady Pro - the WordPress AI SEO pluginBlack Friday Sale is Live: Up to 30% OFF Get Deal
How To

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

16 Jul 2018 6 min read Updated 10 Nov 2026

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 to HTTPS in plain steps: back up, switch the URLs, redirect old links, fix mixed content and update your tools.

INDEX

  1. What is HTTP & HTTPS?
  2. Benefits of HTTPS
  3. Before Migration Steps
  4. Migration from HTTP to HTTPS
  5. After Migration Steps
  6. 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.
  • 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.

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.

  • 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 – 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 – 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. 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. 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 – Check its current plans before you buy.
  • SiteGround – Check its current plans and renewal prices before you buy.

Hosting choices also affect speed and rankings; see 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. 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

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/Replace*

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

Better Search Replace form searching for https://hostmy.blog/, replacing with https://hostmy.blog/, with dry run ticked

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 without breaking links.

cPanel File Manager opening the .htaccess file for editing

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

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 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 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

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

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

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. 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 for broken links and missing redirects. For redirects, indexing and rollback checks on a bigger move, use the 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 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

Share this
Rajendra Zore
Written by

Rajendra Zore

Host My Blog

Rajendra Zore is a WordPress consultant and support specialist at Host My Blog. Five years on the unglamorous half of WordPress: performance, servers, Linux, and the failures that only show up under real traffic. He is usually the one who finds the cause rather than the symptom.

Comments 3

Your email stays private. Be kind.
  • T
    Todd 8 years ago

    Nice write up Raj!

    • R
      Rajendra Zore Author 8 years ago

      Thanks Todd…your inputs really helped – edited few last bits.

  • B
    Brook Hiddink 5 years ago

    Thanks for this really helpful blog.

We’ll handle the technical half

Want your posts in
AI answers, without the work?

Schema, speed and structure are included on every Host My Blog plan. You write; we make sure the machines can read it.

Get tips by email