TechBooky AI Assistant
TechBooky AI Assistant
👋 Welcome to TechBooky AI Assistant

I can help with:
🔎 Tech News
🤖 AI Topics
💻 Gadgets
☁️ Cloud
✍️ Guest Posts
📢 Advertising
🔗 Backlinks
📩 Newsletter
  • AI Search
  • Cryptocurrency
  • Earnings
  • Enterprise
  • About TechBooky
  • Submit Article
  • Advertise With TechBooky
  • Contact Us
TechBooky
  • African
  • AI
  • Metaverse
  • Gadgets
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
  • African
  • AI
  • Metaverse
  • Gadgets
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
TechBooky
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Home Open source

How to Safely Migrate a WordPress Site to a New Server (Step-by-Step Guide)

Paul Balo by Paul Balo
March 25, 2025
in Open source, Tips
Share on FacebookShare on Twitter
Share this story

Send it to someone who should read it.

f Facebook X X in LinkedIn wa WhatsApp tg Telegram @ Email
In Brief
  • Handling Serialized Data After URL Changes (Better Search Replace) When changing URLs in the database, a simple find-and-replace can break data that’s stored in serialized format...
  • Serialized data includes the string length of stored values, so if a URL length changes, the serialization needs to update too.
  • For example, replacing “oldsite.com” with “newsite.com” changes the character count, and if not done carefully, it can corrupt the entry, causing plugin settings or widgets to...

6. Handling Serialized Data After URL Changes (Better Search Replace)

When changing URLs in the database, a simple find-and-replace can break data that’s stored in serialized format (a common storage format in WordPress options and widget data). Serialized data includes the string length of stored values, so if a URL length changes, the serialization needs to update too. For example, replacing “oldsite.com” with “newsite.com” changes the character count, and if not done carefully, it can corrupt the entry, causing plugin settings or widgets to break.

To safely update all instances of the old URL to the new URL in the database, use a tool that understands serialization. Fortunately, there are WordPress plugins and tools designed for this. A highly recommended one is the Better Search Replace plugin. Using Better Search Replace Plugin: Install and activate the Better Search Replace plugin on the new site (you can do this via WP Admin, or download the plugin files and upload them to wp-content/plugins/ if you can’t access admin yet). In WP Admin, go to Tools -> Better Search Replace. In the plugin interface, you’ll specify a search string and a replace string. Use your old site URL (e.g., oldsite.com) as the search, and your new site URL (newsite.com) as the replace. Select all tables (or at least all tables where URLs might appear – usually all WordPress tables). Run it as a dry run first (the plugin has a checkbox for “Run as dry run”) to see how many replacements it would make, without actually changing data​. If the results look plausible, uncheck dry run and run again to perform the replacements. This plugin will handle serialized fields properly, ensuring data integrity​

The Better Search Replace plugin provides a user-friendly interface to find all occurrences of the old URL in the database and replace them with the new URL, while safely handling serialized data. Using Better Search Replace will update URLs inside page content, widget data, settings, etc. For instance, image URLs in your posts that pointed to oldsite.com/wp-content/uploads/... will be changed to newsite.com/..., ensuring media and links aren’t broken. It will also catch things like GUIDs in the posts table, old domain references in some plugin options, and so on.

Alternate Tools: In lieu of a plugin, developers sometimes use WP-CLI’s search-replace command (which also handles serialization)​ or the third-party Search and Replace for WordPress Databases script​

Also worth reading
Schema Markup in WordPress: A Step-by-Step Guide to Rich Result Recovering SSH Access on AWS – A Step-by-Step Guide Too Much Gemini? Here’s How To Dial Back Gemini In Your Google Workspace Apps How One Engineer Built a Local AI News Roundup With Docker & Qwen A Comprehensive Guide to Resolving File Permissions and Theme Issues How to Convert SQL Server to Postgres
. WP-CLI example:
wp search-replace 'oldsite.com' 'newsite.com' --skip-columns=guid --dry-run

then run without --dry-run to execute. This does essentially the same job. The plugin method is more accessible via a UI.

After running the search/replace, your new site’s database should have no references to the old domain (except perhaps in places like backup plugin records or historical data). At this point, if you visit the site on the new server’s URL, all links should point correctly to that URL. This is a major step in avoiding broken links or mixed content issues.

Note: If you kept the same domain name and are only changing hosts, you do not need to do a domain search-replace (since the domain is identical). However, if the site was in a different subdirectory on the old server and now in root (or vice versa), or if the URL protocol changed (http to https), a similar search-replace might be needed for those scenarios. Always back up the DB before running mass search-replace just in case.

Related Reading

More contextual TechBooky stories selected from tags, categories and article context.

  • WordPress theme switch
    A Comprehensive Guide to Resolving File Permissions…
  • wp-speculative-loading-plugin-page-speed-e1712935040275
    WordPress Launches Speculative Loading Plugin To…
  • blog5f352fc3b2393_wp
    Hackers Exploit Popular WordPress Backup Tool Used…
  • https___dev-to-uploads.s3.amazonaws.com_uploads_articles_kqmbj9rjwqfghln5r5jv
    How to Convert SQL Server to Postgres
  • images (2)
    The Untold Story of WordPress and WP Engine's Clash
  • WordPress_blue_logo.svg
    WordPress Launches Revolutionary 100-Year Domain…
  • assets_task_01jrfxkvwqeexbx349fmgw9baz_img_0
    Schema Markup in WordPress: A Step-by-Step Guide to…
  • bluesky-social-app-inc-GettyImages-1252042401_537192_e2lpcg
    Bluesky Adopts Long-Form Content To Rival X Articles
Keep Reading Smarter

Search TechBooky with AI

Use TechBooky's AI Search to explore the context behind this story and related coverage across the site.

Try AI Search
More On This Topic
Open source Tips
Follow TechBooky

Follow TechBooky for more technology stories and newsroom updates.

f Facebook X X in LinkedIn ig Instagram wa WhatsApp

Page 6 of 11
Prev1...567...11Next
Tags: tipswordpresswordpress migration
Paul Balo

Paul Balo

Paul Balo is the founder of TechBooky and a highly skilled wireless communications professional with a strong background in cloud computing, offering extensive experience in designing, implementing, and managing wireless communication systems.

Search TechBooky
Open TechBooky AI Search Try the AI Assistant

BROWSE BY CATEGORIES

Receive top tech news directly in your inbox

subscription from
Loading

Freshly Squeezed

  • Rivian Spinout ALSO Turns E-Bikes Into An Autonomous Delivery Bet August 23, 2026
  • Apple’s Foldable iPhone May Be Real, But The Trade-Offs Are Too August 23, 2026
  • Apple Job Cuts Point To A New Siri And Vision Pro Reset August 22, 2026
  • TikTok’s $400M Privacy Settlement Shows Child Safety Costs Are Rising August 22, 2026
  • OpenAI Cuts GPT-5.6 Sol API Prices As AI Price War Deepens August 22, 2026
  • Apollo Data Breach Shows Wall Street’s Cloud Security Problem August 21, 2026
  • Tesla’s China Recall Turns Hidden Door Handles Into A Safety Issue August 21, 2026
  • Oura Lawsuit Puts AI Sleep Tracking Under Legal Pressure August 21, 2026
  • Ericsson And MTN Move MoMo Onto Cloud Across Four Markets August 21, 2026
  • Kenya’s Digital ID Talks Put Trust Back At The Centre August 21, 2026
  • Starcloud’s $250M Raise Pushes Orbital AI Data Centres Closer August 21, 2026
  • Micron’s $10B Boise Lab Makes Memory A Bigger AI Battleground August 21, 2026

Browse Archives

August 2026
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
31  
« Jul    

Quick Links

  • About TechBooky
  • Advertise With TechBooky
  • Contact us
  • Submit Article
  • Privacy Policy
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
  • African
  • Artificial Intelligence
  • Gadgets
  • Metaverse
  • Tips
  • AI Search
  • About TechBooky
  • Advertise With TechBooky
  • Submit Article
  • Contact us

© 2025 Designed By TechBooky Elite

Discover more from TechBooky

Subscribe now to keep reading and get access to the full archive.

Continue reading

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.