WordPress search and replace changes an old value everywhere in your database in one pass, and it is safe only with a tool that understands how WordPress stores its settings. After a move to a new domain, a switch from http to https or a change of business name, the old value sits in hundreds of places. This guide shows you how to replace it without breaking your settings, from the WordPress dashboard with a free plugin: a backup, a dry run that changes nothing, the real run, then checks.
Before you start
http or https, www or not, and no trailing slash. In these examples old-example.com and example.co.za stand for your own domains.Last reviewed: 19 October 2026, against the current WordPress release. This guide is written for Noiz hosting and is kept current against WordPress. It complements, and does not replace, the official WordPress documentation linked below.
Because WordPress stores many settings (widgets, theme options, page-builder layouts, menus) as serialised data, a format that records the length of every piece of text inside it. The address http://example.com is stored as s:18:"http://example.com";, where 18 is its length. Replace it with https://example.co.za using a plain SQL query in phpMyAdmin and the text grows, the 18 does not, and WordPress can no longer read the setting. Nothing fails at once; a widget or a layout disappears later.
The plugin below unpacks each setting, replaces the text and packs it again with the right length. That is why this guide uses it instead of a plain SQL query.
Run the plugin with Run as dry run ticked. A dry run reports what would change and changes nothing. Always do one first.
Check the number of matches in each table, and leave the guid column alone.
| What the report shows | What it means | What to do |
|---|---|---|
| Zero matches | The old value is not stored exactly as you typed it. | Check http against https, www, and a trailing slash. |
| Matches in tables you did not expect, such as a plugin's log table | Usually harmless. | Read their names before you go on. |
Leave the guid column alone. Each post's GUID is a permanent identifier that feed readers use, and WordPress's own migration guide says never to change it:
"Never, ever, change the contents of the GUID column, under any circumstances"
If it changes, every old post appears as new to your subscribers. Better Search Replace skips it unless you tick Replace GUIDs, so leave that box empty.
Untick Run as dry run and select Run Search/Replace again.
Then repeat Steps 1 to 3 for each other form of the old value that exists, for example https://www.old-example.com and http://old-example.com. Replace the most specific form first.
Clear the caches, refresh the address rules, then look at the places where serialised settings live.
| Symptom | Likely cause | What to do |
|---|---|---|
| The report shows zero replacements. | The search value does not match what is stored. | Copy it from the page source, including the protocol and www. |
| A widget, menu or layout is empty after a replace. | A plain SQL replace was used at some point, or a plugin stores its data in a format the tool cannot read. | Import the database backup you took in Plesk and repeat the job with the plugin as described here. |
| Feed subscribers see every old post as new. | The guid column was changed. |
Restore the database backup and run again with Replace GUIDs unticked. |
| You are sent back to the old domain and cannot log in. | The WordPress Address and Site Address still hold the old domain. | Follow the troubleshooting section of How to Migrate a WordPress Site to Noiz Hosting. |
Read next:
A replace is one step in a move. Once the site is on its new address, WordPress Care keeps it current and recoverable. If you would rather not do the replace yourself, get in touch.