MagicWP Docs

Search and Replace

Bulk-replace text across your site's database

Search & Replace swaps text everywhere in your site's database in one go — the classic use is fixing an old domain or URL across every post, page, and setting. It runs wp search-replace under the hood.

Open your site → Tools → Search and replace → Run.

How to use it

  1. Enter the text to find in Search and the new text in Replace with.
  2. Click Dry Run first — it previews the changes without touching anything, showing a table of where matches were found (Table, Column, Hits, Type).
  3. If the preview looks right, click Apply to make the changes.

After a successful run, MagicWP automatically flushes your page and object caches so the live site reflects the new values.

Back up first — this edits the database directly

Search & Replace changes the database in place and can't be undone from here. Always Dry Run first, and take a backup before applying a big replacement.

Great for domain and URL changes

Moving to a new domain or from http to https? Search for the old URL (e.g. http://old-domain.com) and replace it with the new one to update links, images, and serialized settings across the whole site.

On this page