Move WordPress Hosting Without Data Loss

Sketsa lima langkah pindah hosting: backup, pasang di hosting baru, uji, ganti DNS, lalu pantau sebelum menutup hosting lama

Written by

in

Quick Summary
  • Moving WordPress hosting without data loss can be done by securing a complete backup and keeping the old hosting active during the migration process.
  • You can use an automated migration plugin, perform a manual transfer, or utilize the free migration service from trusted hosting provider Ari Digital Creative.
  • Test the site on the new server using a local hosts file before pointing the DNS to ensure all data is proven safe.

Moving hosting sounds scary, but with the right sequence, the site can stay live and its data safe. There is one key rule: do not shut down the old hosting until the new one is proven to run perfectly.

Sketch of five steps for hosting migration: backup, install on new hosting, test, change DNS, then monitor before closing old hosting

Before you start: preparation

  1. Complete backup containing files and database, then save a copy on your computer (see the 3-2-1 backup rule article).
  2. Note down important data: the PHP version used, plugin list, email addresses running on your domain, and current DNS records (A, CNAME, MX, TXT).
  3. Lower the DNS TTL to around 300 seconds, one to two days before moving. This way, subsequent changes will propagate faster.
  4. Ensure the new hosting is suitable: PHP version equal or newer, sufficient space, and easily accessible support.

Two ways to migrate

Method Advantages Notes
Migration plugin (e.g., Duplicator or All-in-One WP Migration) Easiest for beginners File size limits on certain hosting providers can be an obstacle
Manual (copy files, export and import database) Controlled, suitable for large sites Requires editing wp-config.php with the new database credentials
New hosting assistance Many providers offer free migration Still create your own backup first

Steps to migrate manually

  1. Download all site files (especially wp-content and wp-config.php) via FTP or File Manager.
  2. Export the database via phpMyAdmin into a .sql file.
  3. On the new hosting, create a blank database and database user.
  4. Import the .sql file, then upload the site files.
  5. Adjust wp-config.php with the new database name, user, and password.

Test first before changing DNS

This is a frequently skipped step that is actually the most life-saving. There are two ways to view the site on the new hosting while the domain still points to the old hosting:

Read also Optimizing WordPress Images: Size, Format, and Alt Text

  • Use the temporary URL provided by the new hosting, if available.
  • Edit the hosts file on your computer so the domain points to the new server’s IP address. Only your computer is affected.

When testing, check the front page, several articles, admin login, images, contact forms, and (if any) the checkout flow.

If the domain address changes

If you are moving and changing your domain at the same time, the old address stored in the database must be replaced. Do not perform a standard find-and-replace on SQL files: some WordPress data is stored in serialized formats that can break. Use dedicated plugins like Better Search Replace, or WP-CLI, which handle serialized data correctly. Also set up 301 redirects from the old domain to the new domain.

Changing DNS

  1. Change the A records (or nameservers) to the new hosting in your domain registrar.
  2. Wait for propagation. With a low TTL it is usually fast, but some visitors might still see the old site for a few hours.
  3. During that period, avoid changing content on either side to prevent leaving any data behind. For online stores, pause orders briefly or choose off-peak hours.
  4. Commonly missed pitfalls

    • Email. If your email is hosted on the old hosting, migrate your mailbox and MX records as well. A misstep here will cause emails to stop coming in.
    • SSL. Install the certificate on the new hosting and ensure the site opens with HTTPS without warnings.
    • Cron and cache. Clear plugin cache, then re-save permalinks.
    • Site email delivery. Test contact forms, because server email settings vary by hosting provider.

    After moving

    Monitor the site for about a week. Check Google Search Console for error spikes. Only after everything is settled and a fresh backup is stored can the old hosting be closed.

    Read also Permalinks, 404 Errors, and Proper Redirects in WordPress

    Frequently Asked Questions

    How can I move WordPress hosting without losing any data?

    The golden rule to prevent data loss is to keep your old hosting active until the new server is fully tested and proven to work. Always create and download a complete manual backup of both your files and database before initiating any transfer steps.

    Should I use a migration plugin or perform the transfer manually?

    Migration plugins are ideal for beginners because they automate the file and database transfer process. However, manual migration via FTP and phpMyAdmin gives you total control, which is often necessary for very large websites with heavy file structures.

    How do I get started with a professional website migration service?

    To begin a professional transfer, you simply share your current server credentials and requirements with Ari Digital Creative. We will handle the complete file and database migration securely while ensuring zero downtime and verifying that your site runs smoothly on the new server environment.

    How can I test the new hosting before pointing my domain?

    You can test your migrated site by editing your local computer’s hosts file to point your domain name directly to the new server IP address. This lets you thoroughly check the front page, admin login, and contact forms without affecting live visitors.

    What should I do after changing the DNS records to the new hosting?

    Monitor your website closely for about a week, checking Google Search Console for any error spikes. You should also clear your server and plugin cache, and speed up your site if the new environment has different resource limits before closing your old account.