Changing your WordPress database URLs to https using a plugin

If you have recently added an SSL certificate to your site, there are still several links in your database that point to the 'HTTP' version of your URL. You must update these URLs to point to the HTTPS version of your site so you can use this new SSL certificate. For example:

  • https://example.com

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:
    • http://example.com
  9. In the second field titled 'Replace with:', enter your HTTPS URL. For example:
    • https://example.com
  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.

Final steps

At this point, all URLs in your database point to HTTPS, 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 additional steps you should take to adjust your WordPress site to use an SSL certificate.

See also

Did this article answer your questions?

Article last updated PST.