A web team arranging a website sitemap and page cards before moving a site to a new structure

Editorial illustration; it does not show a real migration or website.

On paper, moving a website looks like copying files and pointing DNS to a new server. In practice, that is how old links start returning 404s, Google drops your top-performing pages from search, contact forms silently stop sending emails, and half your visitors still land on the old host for hours after launch.

The hard part of a migration is never moving HTML or database rows. It is keeping every promise the old site made: the URLs people bookmarked, the downloadable PDFs shared in client emails, the form notifications, and a clean way to roll back if something breaks under real traffic.

Separate What Is Actually Changing

“Website migration” gets used for everything from switching shared hosting to rebuilding a WordPress site in a completely different framework. Every extra variable you change on the same day multiplies the places a bug can hide.

Before anyone touches production, write down the exact scope:

  • Is the domain staying the same, or changing?
  • Are we changing hosts only, or also swapping the CMS and URL paths?
  • Which integrations—SMTP/email delivery, payment gateways like FPX/Stripe, analytics, webhooks—must keep working during the switch?

Whenever possible, separate an infrastructure move from a URL or redesign change. Moving an existing site to a new server first (with identical URLs), verifying stability, and then rolling out a redesign is vastly safer than changing host, CMS, and permalink structure in one midnight cutover.

Inventory the Real URLs Before Building Anything

Do not start by designing the new navigation menu. Start by exporting every URL that currently receives traffic or links. Relying only on a site crawl misses orphan landing pages, old campaign URLs, and direct PDF links.

Pull data from three places: your existing sitemap.xml and server access logs, Google Search Console (pages with impressions or clicks over the last few months), and analytics or support tickets that show where real users land. Tag each URL as keep as-is, merge, redirect, or retire. Keep useful low-traffic pages—often an old troubleshooting guide or warranty PDF is the exact page customers search for when something goes wrong.

Map Redirects One-to-One

Build a simple redirect table before writing a single server rule:

Old URL New URL Decision
/about-us/ /about/ 301 permanent redirect
/services/old-package/ /services/ Merge and 301 redirect
/download/guide.pdf /resources/guide.pdf Move file and 301 redirect
/temporary-test-page/ — Return deliberate 404 or 410

Map old pages to their closest equivalent one-to-one. Bulk-redirecting every retired URL to the homepage might hide 404 counts in a report, but it frustrates visitors who clicked a link expecting a specific answer and confuses search engines trying to re-index the site.

Once the new site is up, update all internal links, menus, and <link rel="canonical"> tags so the new site points directly to the final URLs rather than bouncing visitors through its own redirects. Watch out for trailing-slash mismatches, uppercase characters, and query strings (?utm_source=...), and test that your redirects do not loop or downgrade HTTPS back to HTTP.

Back Up and Verify Data Parity

Take a complete, restorable backup of the old site—database, wp-content/uploads or sites/default/files, .env files, cron jobs, and DNS zone export—before the final sync. A backup file you haven’t tested restoring is just a hopeful .tar.gz.

After importing into the new environment, spot-check more than the homepage. Check media uploads, downloadable PDFs, image thumbnails, multilingual pages, user login flows, and form email delivery (a new server often lacks SPF/DKIM authorization or SMTP credentials, causing contact forms to fail silently or land in spam). Keep secrets and .env files out of Git repositories and temporary public directories.

Test the New Origin Privately Before Touching DNS

Never test a migration by flipping public DNS and hoping for the best. Test the new server privately using a staging subdomain, your local /etc/hosts file, or curl --resolve so your requests hit the new IP while sending the real production hostname:

curl -I --resolve example.com:443:203.0.113.10 https://example.com/old-package/

That lets you verify TLS certificates, virtual host configuration, and 301 redirect headers against the exact production domain before a single visitor sees it. Walk through key journeys on both desktop and a real phone—logged in and logged out—and double-check robots.txt and <meta name="robots"> tags. Accidentally shipping noindex or Disallow: / from a staging config into production is one of the most common post-migration disasters.

Plan the Cutover and a Real Rollback

About 24 to 48 hours before cutover, lower the DNS record TTL (for example, from 3600 down to 300 seconds) so resolvers pick up the switch faster. If the domain is proxied through Cloudflare, updating the origin A/AAAA record takes effect at the edge almost immediately without waiting on slow ISP resolver caches.

During the cutover window, briefly freeze content edits or orders on the old site so you don’t end up with split data across two databases. Keep the old server online and untouched for at least a week or two after launch—your rollback plan should be a concrete, written step (“point A record back to old-ip and re-enable edits”) rather than an improvised scramble.

Monitor the First Few Days Closely

Right after switching traffic, watch your server error logs (500s), 404 logs, redirect chains, and form submissions. Search engines will take days or weeks to recrawl and settle, so ignore minor hourly traffic noise—focus instead on patterns, such as an entire /bm/ language directory returning 404 or a specific asset path failing to load. Ask client support or sales staff if anyone reports broken links; they often hear about missing invoice or brochure URLs long before an analytics chart shows it.

If you want to shore up the surrounding pieces before your next move, these guides cover the three areas that most often trip up migrations:

A good migration feels boring on launch day. Inventory what exists, keep URLs stable where you can, test redirects and forms against the new IP before touching DNS, and keep the old host ready until the logs stay quiet.

Sources