Moving your WordPress site to a new server

Transferring a WordPress site from one server to another can feel daunting, but it need not be complicated if you take the right approach.

A methodical process ensures your site continues to function smoothly, with no loss of data and minimal disruption to visitors.

Process

Below is a clear, step-by-step guide to carrying out a reliable migration, from moving files and databases to updating DNS records.

Step 1: Prepare your current site

Before you begin, ensure your existing WordPress site is in good working order. Update WordPress core, your theme and any plugins to their latest versions. It is also wise to clear out any unused themes or plugins.

Take a full backup of both your files and database. The files include your theme, plugin folders, uploads and the core WordPress files. The database contains all of your posts, pages, users, settings and metadata. You can use a plugin, a control panel backup tool, or run a manual export via phpMyAdmin and FTP.

Step 2: Set up the new server

Next, prepare your new hosting environment. Install a fresh copy of WordPress on the new server to ensure everything is configured correctly — especially the PHP version, database support and SSL certificates. Create a new, empty MySQL database and note down the database name, username and password.

Step 3: Transfer files and database

Upload the files from your existing WordPress site to the new server. This can be done via FTP, SFTP or an archive extraction tool provided by your hosting control panel. Replace the default wp-content folder on the new installation with the wp-content folder from your backup.

Then, import the database backup into the new database you created. phpMyAdmin, the command line, or a hosting migration tool can all be used for this step.

Once the database is restored, open the wp-config.php file on the new server and update the database connection details so WordPress knows how to connect.

Step 4: Update site URL if needed

If the domain name is not changing, the site URL will remain the same. If the domain is changing, update the siteurl and home values in the database (under the wp_options table). This can also be done by adding the following lines to wp-config.php as a temporary measure:

Final thoughts

Migrating WordPress is a process that rewards careful preparation. By taking backups, testing before going live and managing the DNS change properly, you can achieve a seamless transfer with minimal risk. Whether you are moving to a more powerful server, changing hosting providers or consolidating sites, this step-by-step approach will ensure a smooth transition.

Ready to elevate your WordPress site?

Whether you're launching a new site, strengthening security, or integrating WooCommerce, I can help transform your vision into a high-performing online presence.

Contact me to discuss your WordPress project

More WordPress posts

Using WordPress as a static site generator

Static site generators have gained significant traction amongst developers, designers, and businesses seeking faster, more secure websites. Unlike traditional dynamic sites, which rely on a database to deliver content on…

Continue reading

Moving a WordPress Website with ACF and Custom Post Types to Brightspot CMS

Migrating a website from WordPress to Brightspot CMS can seem daunting, particularly when the WordPress installation relies heavily on Advanced Custom Fields and Custom Post Types. Both ACF amd CPT…

Continue reading

Better WordPress Performance

A slow-loading website can be frustrating, not only for your visitors, but for you as a business owner. If your WordPress site is taking too long to load, you’re not…

Continue reading

What's going on between WordPress and WP Engine?

The disagreement between WordPress and WP Engine has sparked considerable debate within the WordPress community and could have important implications for users of the WordPress content management system (CMS). WP…

Continue reading