// blog

How to Migrate a WordPress Site to a New Host: Complete Step-by-Step Guide

August 21, 2026 · by Alex M.

How to Migrate a WordPress Site to a New Host: Complete Step-by-Step Guide

Migrating a WordPress site to a new hosting provider sounds daunting, but with the right plan it's a clean, well-structured process. Whether you're looking for better performance, more affordable pricing, or advanced infrastructure, switching hosts doesn't have to mean downtime or data loss.

This guide walks you through every step — from creating a full backup to updating your DNS records — so your migration is smooth and stress-free.


Why Migrate a WordPress Site?

There are many valid reasons why WordPress site owners decide to switch hosts:

  • Poor performance — slow load times, insufficient server resources
  • Inadequate technical support — slow responses, lack of expertise
  • High cost compared to what competitors offer for the same specs
  • Need to scale — a growing site requires more power and flexibility
  • Security — modern infrastructure with DDoS protection, WAF, and included SSL

If you're currently on shared cPanel hosting and feeling the limits, upgrading to a NVMe VPS could be the natural next step.


What You Need Before You Start

Before starting the migration, make sure you have:

  • Access to your current hosting control panel (cPanel, Plesk, etc.)
  • Access to your new hosting account (cPanel login or SSH)
  • Access to your domain registrar's dashboard (for DNS changes)
  • A WordPress migration/backup plugin (recommended: All-in-One WP Migration or Duplicator)
  • 1–2 hours of free time

Tip: Schedule the migration during off-peak hours — late evening or weekends — to minimise impact on your visitors.


Step 1 — Create a Full Backup of Your WordPress Site

This is the most critical step. Never skip it.

Option 1: All-in-One WP Migration Plugin

  1. Install and activate the All-in-One WP Migration plugin from the WordPress repository.
  2. Go to All-in-One WP Migration → Export.
  3. Select Export to → File.
  4. Download the generated .wpress archive to your computer.

The archive includes the database, all site files, themes and plugins — everything in a single file.

Option 2: Manual Backup via cPanel

For full control over what's exported:

  1. Site files: Go to cPanel → File Manager, navigate to public_html, select all files, and download as a .zip archive.
  2. Database: Go to cPanel → phpMyAdmin, select your WordPress database, then click Export → Quick → Go. A .sql file will be downloaded.

Keep both files safe — they are your only safety net.


Step 2 — Set Up Your New Hosting Account

Once you've chosen a new provider, prepare the hosting environment.

If you choose optimised WordPress hosting, many settings come preconfigured (recommended PHP version, caching, SSL included). If you opt for a SSD VPS, you'll need to manually install a LAMP/LEMP stack and WordPress.

On shared hosting (cPanel):

  1. Create a hosting account or an addon domain for your domain.
  2. Create a new MySQL database: cPanel → MySQL Databases.
  3. Create a MySQL user and grant it full privileges on the new database.
  4. Note down: the database name, username and password — you'll need them shortly.

Step 3 — Transfer Files to the New Server

Via plugin (All-in-One WP Migration):

  1. Install a fresh copy of WordPress on the new host.
  2. Install the All-in-One WP Migration plugin.
  3. Go to Import → File and upload the .wpress archive.
  4. The plugin will automatically import all files and the database.

Note: The default PHP upload limit may block large file imports. Increase upload_max_filesize and post_max_size in cPanel → PHP Settings, or contact CLIQHOST support.

Manual transfer via FTP/SFTP:

  1. Connect to the new server using an FTP client (FileZilla recommended).
  2. Upload all WordPress files to the public_html directory.
  3. Import the database in the new server's phpMyAdmin: Import → Choose file → Go.
  4. Edit wp-config.php with the new database credentials:
define('DB_NAME', 'new_database_name');
define('DB_USER', 'new_db_user');
define('DB_PASSWORD', 'new_db_password');
define('DB_HOST', 'localhost');

Step 4 — Test the Site Before Changing DNS

This step is essential: you need to confirm everything works on the new server before any visitors are redirected there.

The hosts file method (temporary)

Edit the hosts file on your local machine to point the domain to the new server's IP:

Windows: C:\Windows\System32\drivers\etc\hosts
Linux/macOS: /etc/hosts

Add the line:

NEW_SERVER_IP   yourdomain.com www.yourdomain.com

Now when you open the domain in your browser, you'll see the site from the new server. Check that:

  • Pages load correctly
  • Images and media files are present
  • Contact forms work
  • The WordPress admin area is accessible
  • No 404 or 500 errors appear

After testing, remove the line from the hosts file.


Step 5 — Install an SSL Certificate on the New Server

Before switching DNS, make sure SSL is active on the new host. A WordPress site without HTTPS loses visitor trust and Google rankings.

On CLIQHOST cPanel hosting, you can enable AutoSSL with one click: cPanel → SSL/TLS → AutoSSL.

For business-grade protection, consider purchasing a premium SSL certificate with OV or EV validation.


Step 6 — Update Your Domain's DNS Records

This is the actual switch. Updating DNS will direct traffic from the old server to the new one.

  1. Log in to your domain registrar's control panel.
  2. Navigate to the DNS settings for your domain.
  3. Update the nameservers (NS) to the new host's OR simply update the A record to the new server's IP:
Type: A
Name: @
Value: NEW_SERVER_IP
TTL: 300 (5 minutes — for fast propagation)

DNS propagation can take anywhere from 15 minutes to 48 hours depending on previous TTL and your DNS provider. Use whatsmydns.net to monitor propagation globally.


Step 7 — Post-Migration Checklist

Once DNS has propagated and the site is live on the new server:

  • Flush permalink structure: WordPress → Settings → Permalinks → Save.
  • Test forms and payment gateways if you're running WooCommerce.
  • Confirm SSL is active and there's no mixed content (HTTP assets on HTTPS pages).
  • Activate a caching plugin (LiteSpeed Cache, W3 Total Cache) for maximum speed.
  • Set up automated backups on the new server right away.
  • Keep the old hosting active for 7–14 days as a safety net, then cancel.

Common WordPress Migration Mistakes

Mistake Consequence Solution
Changing DNS without prior testing Broken site visible to all visitors Always test via the hosts file first
Forgetting to update wp-config.php Database connection error Double-check all DB credentials
No SSL on new server Browser warnings, SEO loss Install SSL before switching DNS
Incomplete backup Data loss Use a dedicated plugin or full cPanel backup

Conclusion

Migrating WordPress is a logical, step-by-step process: backup → new server setup → file transfer → testing → SSL → DNS. The key to success is patience and thorough testing before flipping the DNS switch.

Looking for fast, reliable WordPress hosting? Explore CLIQHOST WordPress hosting plans, or go further with a NVMe VPS for full control and maximum performance. Need hands-on help with the migration? Our server management team is ready to assist — get in touch today.

SHARE
// what clients say

What Our Clients Say

Real reviews from customers who trust CLIQHOST for performance, reliability and expert technical support.

★★★★★

"We moved our online shop from a foreign host and the difference is night and day — pages load instantly and support replies in minutes, in Romanian."

AM
Andrei M.
eCommerce owner · Chișinău
★★★★★

"Migrated 12 client sites to CLIQHOST. Free migration, zero downtime, and the cPanel setup is exactly what my team needed. Highly recommend."

EV
Elena V.
Web agency · Bălți
★★★★★

"Our NVMe VPS handles traffic spikes without a sweat. Full root, local datacenter, and billing in MDL — everything we wanted from a provider."

DC
Dmitri C.
SaaS founder · Chișinău