How I Migrated a Website to a New Server – Part 3: Testing, DNS & Going Live

How I Migrated a Website to a New Server – Part 3: Testing, DNS & Going Live

How I Migrated a Website to a New Server – Part 3: Testing, DNS & Going Live

In Part 1, we prepared for the migration and created backups.

In Part 2, we moved the website files and database to the new server and connected the website to its new database.

Now we are at the final stage:

Taking the website live on the new server.

This is the part where we change the DNS records so visitors are directed to the new server.


Step 1: Test the Website One More Time

Before changing DNS, give the website one final test.

Open the website on the new server and check the important pages and features.

At a minimum, check:

  1. Homepage
  2. About and contact pages
  3. Images
  4. Menus and navigation
  5. Login
  6. Admin dashboard
  7. Contact forms
  8. Search
  9. Website links
  10. Database-driven content

If it is a WordPress website, log into the WordPress dashboard and make sure everything looks normal.

Also check your plugins and themes for errors.

The objective is simple:

Make sure the new server works before sending real visitors to it.


Step 2: Configure SSL

Your new server needs a valid SSL certificate before the domain starts receiving visitors.

Without SSL, visitors may receive security warnings when accessing:

https://example.com

If you are using cPanel, check:

cPanel → SSL/TLS

Depending on your hosting environment, you may also have an automatic SSL option such as AutoSSL.

Once SSL has been installed, test:

https://example.com

Make sure the certificate is valid and the website loads correctly.

Also check that important resources such as images, CSS, and JavaScript are loading over HTTPS.


Step 3: Check Your DNS Records

Your domain currently points to the old server.

For example:

example.com
DNS
OLD SERVER IP

We want to change it to:

example.com
DNS
NEW SERVER IP

The most important record for many websites is the A record.

For example:

Type: A
Name: @
Value: NEW_SERVER_IP

You may also have a record for:

www

Depending on your DNS setup, this could be a CNAME pointing to your main domain.

If your domain also handles email, be especially careful with your MX records. Changing the wrong email-related DNS records can interrupt mail delivery.


Step 4: Lower DNS TTL Before the Migration

If you had planned the migration in advance, you could have reduced the DNS TTL (Time To Live) before making the switch.

TTL controls how long DNS information can be cached.

For example, you might temporarily use:

TTL: 300 seconds

instead of a much longer value.

This can help make the transition easier to manage.

However, changing TTL does not mean that every visitor will immediately see the new server.

DNS caching still depends on different networks and DNS resolvers.


Step 5: Update the DNS

Once you are satisfied that the new server is ready, update the DNS record.

Change:

OLD_SERVER_IP

to:

NEW_SERVER_IP

After saving the DNS changes, the migration is effectively entering the go-live stage.

Some users may reach the new server before others while DNS caches update.

This is normal.


Step 6: Monitor the Website

Now keep an eye on the website.

Do not immediately delete the old server or account.

Monitor:

  1. Website availability
  2. Server errors
  3. 404 pages
  4. Database errors
  5. Contact forms
  6. Login functionality
  7. Images
  8. SSL
  9. Website speed
  10. Email functionality

You can also check your website's server logs for unexpected errors.

For example, if you are using Apache, error logs can help identify problems that visitors may not see directly.

Step 7: Check for Broken Links

After migration, it is worth checking whether any pages or files are returning errors.

Look for:

404 Not Found
403 Forbidden
500 Internal Server Error

A website crawler or search engine monitoring tool can help identify broken URLs.

Pay particular attention to:

  1. Important landing pages
  2. Blog posts
  3. Images
  4. Downloads
  5. JavaScript files
  6. CSS files

Fixing these issues quickly helps prevent a poor user experience after migration.


Step 8: Check Email Separately

If your website and email use the same domain, remember that website migration and email migration are not necessarily the same thing.

Your website may work perfectly while email is still using the old server.

Check your DNS records and confirm where your MX records point.

Then test:

  1. Sending an email
  2. Receiving an email
  3. Webmail access
  4. Existing email accounts

If you migrated email separately, make sure that process has also been completed successfully.


Step 9: Keep the Old Server Available

Give the migration time.

Keep the old website and server available until you are confident that:

  1. DNS has updated
  2. Visitors are reaching the new server
  3. The website is working correctly
  4. Email is working
  5. No important data is missing
  6. No major errors are appearing

The exact amount of time depends on your website and DNS setup.


Step 10: Take a Final Backup

Once everything is working correctly, create a fresh backup on the new server.

For the website files:

tar -czvf final-website-backup.tar.gz public_html/

And for the database:

mysqldump -u DATABASE_USER -p DATABASE_NAME > final-database-backup.sql

Store these backups somewhere safe.

You now have a recovery point for the newly migrated website.


How to Know if the Migration Is Complete

The migration complete when:

  1. The domain points to the new server.
  2. HTTPS works correctly.
  3. The homepage loads.
  4. Important pages work.
  5. Images and media load.
  6. Forms work.
  7. Users can log in.
  8. The database works correctly.
  9. Email has been tested.
  10. No major server errors are appearing.
  11. DNS has propagated sufficiently.
  12. A final backup has been created.

Only after these checks would I consider retiring the old server.


Common Problems After Going Live

The Website Still Shows the Old Server

This is usually related to DNS caching.

Give DNS changes time to propagate and check the domain from different networks or DNS lookup tools.

SSL Shows an Error

Check that the SSL certificate was installed for the correct domain and that the DNS now points to the new server.

Some Pages Return 404

Check your website's rewrite rules, .htaccess file, and application configuration.

For WordPress, you can also go to:

Settings → Permalinks

and save the permalink settings again to refresh the rewrite rules.

The Website Is Slow

Compare the new server's PHP version, database performance, available resources, and server configuration with the old environment.

The Complete Migration Process

Now that we have completed all three parts, the process can be summarized in six simple stages:

1. BACK UP
2. PREPARE NEW SERVER
3. TRANSFER FILES & DATABASE
4. TEST
5. UPDATE DNS
6. MONITOR & BACK UP

The key is not to rush from one stage to another.

Each stage gives you an opportunity to catch problems before they affect visitors.


Migrating a website to a new server does not have to mean losing data or experiencing unnecessary downtime.

The most important lesson from this migration is simple:

Do not make the DNS switch until the new server is ready.

By creating reliable backups, transferring the website and database carefully, testing everything before going live, and keeping the old server available during the transition, you give yourself a much safer migration process.

The complete approach is:

Prepare → Back Up → Transfer → Restore → Test → Switch DNS → Monitor.

Once the new server has been running successfully and you are confident that everything is working, you can safely retire the old hosting environment.

That is how you can move a website to a new server while protecting the data and functionality you have already built.


Need Help Migrating Your Website?

Server migrations can involve more than simply copying website files. DNS, databases, SSL, email, PHP versions, permissions, and server configuration can all affect the final result.

If you are planning to move your website to a new server and want help with the migration, African Script can assist with server preparation, website transfers, database migration, DNS configuration, and post-migration testing.


Contact African Script and let us help you move your website safely.

Comments

Oops! This post doesn't have any comment currently.

Leave a Reply

Your email address will not be published. Required fields are marked *

Quick Enquiry