Overview
In this article, you will learn to update all the URLs in your WordPress database using a plugin.
Note: In case, you have recently installed the SSL certificate, you will find several links in your database pointing to the โHTTPโ version of your URL. These URLs need to be updated in order to point to the HTTPS version of your site for using this new SSL certificate. For instance: https://example.com
Better Search & Replace
- The first step is to take the backup of your database. Suppose if there is something wrong, it is possible to replace the old database data.
- Next, download theย Better Search Replaceย plugin.
- Go to theย Pluginsย section on your left-side and click onย Add New.
- Search forย โBetter Search Replaceโย and click onย Installย Now.
- Click on theย Activateย tab, after the plugin is installed.
- Then navigate to the plugin under theย Toolsย section on your left-side and click onย Better Search Replace.
- After the plugin window appears, click on theย โSearch/Replaceโย tab where you will need to fill in the required fields.
- In theย โSearch for:โย field, mention the name of your current http URL. For instance: http://example.com.
- Then go to theย โReplace with:โย field and enter yourย HTTPS URL. For example: https://example.com.
- After that, select all tables in theย โSelect tablesโย field.
- Jump to the box titledย โRun as dry run?โย and tick on it.
- Click on theย Run Search/Replaceย button.
- You will get a message at the top that reveals you have been updated if you donโt check theย โDry Runโย box.
- If everything goes well, run it again with the โRun as dry run?โย box un-checked.
- You will get a confirmation, notifying you of the number of changes made.
Final Steps
Finally, all the URLs in your database point to HTTPS. But, there are some other steps you need to completely ensure all the links within your site point for securing the version of your domain name (This means the โHTTPSโ version).







