How to change domain on a WordPress site.

Changing Domain Safely

I’ve spent nine years un-breaking client sites, and if there is one thing that makes my eye twitch, it’s the idea that you need a $500 “migration specialist” or a bloated, expensive plugin just to handle how to change domain on a WordPress site. Most of these “solutions” are just more layers of junk code being piled onto an already fragile foundation. You don’t need a magic wand or a subscription service; you need to understand the decisions your database has already made about where it lives. If you treat a domain swap like a simple find-and-replace task without checking your serialized data, you’re essentially inviting a site-wide meltdown.

I’m not here to sell you on a fancy tool or walk you through a generic, sanitized tutorial that ignores the messy reality of broken links and broken images. Instead, I’m going to show you how to audit your current setup and execute the move without leaving a trail of 404 errors behind you. We’re going to do this the right way—by looking under the hood and making sure your site actually knows its new home before you flip the switch.

Table of Contents

Why Changing WordPress Site Address in Settings Isnt Enough

Why Changing WordPress Site Address in Settings Isnt Enough

Look, I’ve seen this movie before. You go into Settings > General, swap out the old URL for the new one, hit save, and think you’re done. Then you pull up your homepage and everything looks like a digital car crash. Images are missing, your CSS is gone, and the layout has collapsed into a pile of unstyled text. Why? Because changing WordPress site address in settings only tells the core software where it lives; it doesn’t go back through your entire history to clean up the mess.

Your site is essentially a massive collection of hardcoded references. Every time you uploaded an image or customized a widget, that specific old URL was etched into your content. If you don’t perform a proper WordPress database search and replace, those old links stay buried in your posts, media library, and theme options. You aren’t just moving a house; you’re moving every single piece of furniture, and if you don’t update the address on every single label, things are going to end up lost in transit. You can’t just tell WordPress the new name and expect it to magically rewrite its own past.

Building Your Custom WordPress Site Migration Checklist

Building Your Custom WordPress Site Migration Checklist

If you think you can just flip a switch and walk away, you’re setting yourself up for a week of fixing 404 errors. A real wordpress site migration checklist isn’t just about the URL; it’s about the digital debris left behind. Before you touch a single setting, you need to audit your assets. I always start by mapping out every hardcoded link in my custom CSS or child themes. If you’ve manually typed a path into a stylesheet or a widget, changing the address in the dashboard won’t touch it. You have to find those ghosts before they haunt your new setup.

Once the structural audit is done, the heavy lifting begins. You can’t just update wordpress site url in the settings and call it a day; your database is still clinging to the old identity like a bad habit. This is where a proper wordpress database search and replace becomes non-negotiable. I’ve inherited more “broken” sites than I care to count simply because someone forgot that serialized data doesn’t play nice with simple find-and-replace tools. Use a script that actually understands how WordPress stores its data, or prepare to spend your weekend manually fixing broken images and dead links.

Stop assuming a simple URL swap will fix everything

  • Search and replace the database, because your content is still living in the past. If you don’t run a proper search and replace for your old URL, your images will break and your internal links will point to a ghost town.
  • Audit your plugins before you flip the switch. I’ve inherited more broken sites because some “optimization” plugin was hard-coded to a specific directory that no longer exists.
  • Don’t ignore your SSL certificate. Moving to a new domain is the perfect time for everything to turn into a “Not Secure” warning if you haven’t provisioned a new certificate for the new address.
  • Check your hard-coded paths. If you (or some developer before you) bypassed the WordPress settings to hard-code absolute paths into your CSS or functions.php, your site is going to look like a broken 1998 Geocities page.
  • Test your redirects immediately. You aren’t just moving a site; you’re moving an identity. If you don’t set up 301 redirects from the old domain to the new one, you’re effectively handing your SEO authority over to whoever registers your old name next.

Don't just hope it works

Don't just hope it works; audit migrations.

Look, changing your domain isn’t just a matter of swapping a few strings in the settings menu and calling it a day. If you didn’t audit your database, hunt down those hardcoded URLs, and actually run a proper search-and-replace, you’re just begging for a broken site. I’ve spent way too many hours un-building client messes because they thought a migration was as simple as clicking “save” on a new URL. You need to treat this like a structural renovation: check your redirects, verify your SSL, and make sure your internal links aren’t still pointing back to a ghost domain. Doing the heavy lifting now saves you from the inevitable panic of a 404-filled nightmare later.

At the end of the day, a domain change is a reset button for your digital identity. It’s an opportunity to strip away the bloat and start fresh with a cleaner, faster architecture. Don’t let the technical anxiety stop you from making the move, but please, don’t be reckless with your data either. Treat your site like the collection of deliberate design decisions it is, and you’ll come out the other side with a much stronger foundation. Now, go run that backup and do it right.

About Rasheeda Volkov

A theme is a set of decisions somebody else made. I read them before installing.

Author photo