WordPress4 min read

Step-by-Step Guide to Migrating WordPress to a New Host

Learn how to migrate your WordPress site to a new host using plugins or manual database exports.

FT
Figmantor Team
Published: May 24, 2026
Step-by-Step Guide to Migrating WordPress to a New Host

Understanding the Need to Migrate Your WordPress Site

Migrating your WordPress site to a new host can be prompted by various factors such as improved performance, better customer service, or cost-effectiveness. Regardless of the reason, a successful migration requires careful planning and execution to avoid downtime and data loss.

Preparation Before Migration

Before diving into the migration, there are some essential steps to take to ensure a smooth transition.

  • Back up your current site completely.
  • Choose your new hosting provider and plan.
  • Set up your new hosting account.
  • Ensure you have access to your domain registrar.

Method 1: Using a Plugin for Migration

One of the easiest ways to migrate your WordPress site is by using a plugin. The All-in-One WP Migration plugin is highly recommended due to its user-friendly interface.

Step-by-Step Migration Using All-in-One WP Migration

Follow these steps to migrate your site using the All-in-One WP Migration plugin:

  • Install and activate the All-in-One WP Migration plugin on your current site.
  • Navigate to the 'All-in-One WP Migration' tab in the WordPress dashboard.
  • Click on 'Export' and select 'File.' This will generate a downloadable file containing your website's data.
  • Download the exported file to your local machine.
  • On your new host, install WordPress and activate the All-in-One WP Migration plugin.
  • Go to 'All-in-One WP Migration' > 'Import' on your new site.
  • Upload the file you downloaded earlier and wait for the import process to finish.
  • Once done, you will be prompted to save your permalinks. Click 'Finish' and ensure everything is working.

Method 2: Manual Migration via Database Export

If you prefer a more hands-on approach, you can manually migrate your site using cPanel. This method requires a bit more technical knowledge but gives you complete control over the migration.

Step-by-Step Manual Migration Process

Here's how to manually migrate your WordPress site using cPanel:

  • Log in to your current host's cPanel.
  • Go to 'File Manager' and compress your WordPress files into a .zip archive.
  • Navigate to the 'phpMyAdmin' section in cPanel.
  • Select your WordPress database and click on 'Export.' Use the 'Quick' method and 'SQL' format.
  • Download the .sql file to your local machine.
  • Log in to your new host's cPanel and upload the .zip file to the 'public_html' directory.
  • Unzip the files using the File Manager.
  • In 'phpMyAdmin' on your new host, create a new database and user, and assign the user to the database with all privileges.
  • Import the .sql file you downloaded earlier into the new database.
  • Edit the 'wp-config.php' file in your WordPress files to update the database name, user, and password.

Editing wp-config.php

PHPREAD-ONLY CONFIG
<?php
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'new_database_name');

/** MySQL database username */
define('DB_USER', 'new_database_user');

/** MySQL database password */
define('DB_PASSWORD', 'new_database_password');

/** MySQL hostname */
define('DB_HOST', 'localhost');
?>

Final Steps After Migration

Once your site is migrated, there are a few final tasks to ensure everything is running smoothly.

  • Update DNS settings at your domain registrar to point to the new host.
  • Check for broken links or missing images.
  • Test your site's functionality thoroughly.
  • Consider updating your permalinks by going to 'Settings' > 'Permalinks' in your WordPress dashboard.

Conclusion

Migrating your WordPress site to a new host can be a straightforward process when approached methodically. Whether you choose to use a plugin like All-in-One WP Migration or opt for a manual migration via cPanel, following the steps outlined above will help ensure a successful transition. Always remember to back up your data before starting the migration to safeguard against any potential data loss.

Figmantor Logo
Verified Agency Experts

Work with Figmantor

We are an experienced team of experts in AI integrations, WordPress development, Showit customizations, and Next.js web development. From fixing bugs and optimizing speed to converting designs into production-ready platforms, we handle your project end-to-end with premium code quality.

Related Articles