Changing your WordPress database URLs to https using a plugin

This article is only necessary if you have already been working on your WordPress site without an SSL certificate. If so, there are several links in your database that point to the 'HTTP' version of your URL.

If you have recently added an SSL certificate to your site, you must update these URLs to point to the HTTPS version of your site. For example:


Adding an SSL certificate to your WordPress site is an excellent first step towards securing your data. However, there are a few other steps you must take to fully ensure all links within your site point to the secure version of your domain name (This means the 'HTTPS' version).

View the following article for all steps you should first take to adjust your WordPress site to use an SSL certificate.

The last step would be to adjust your database URLs to point to 'HTTPS'.

Better Search & Replace

  1. First, make a backup of your database. Just in case something goes wrong, you can easily replace your old database data.
  2. Download the Better Search Replace plugin. In your panel navigate to 'Plugins > Add New'.
  3. Search for 'Better Search Replace'.
  4. Click Install Now.
  5. Click Activate
  6. In your Dashboard, navigate to the plugin under 'Tools > Better Search Replace'.
  7. Click the 'Search/Replace' tab.
  8. In the first field titled 'Search for:', enter your current http URL. For example:
  9. In the second field titled 'Replace with:', enter your HTTPS URL. For example:
  10. Select all tables.
  11. Check the box titled 'Run as dry run?'. 
  12. Click Run Search/Replace.
  13. This should respond with a message at the top notifying you of what would have been updated if you did not check the 'Dry Run' box.
  14. If everything looks good, run it again with the 'Run as dry run?' box UN-checked.
  15. A confirmation will display notifying you of how many changes were made.

At this point, all URLs in your database point to HTTPS.

Did this article answer your questions?

Article last updated PST.