Your current hosting is slow or expensive, or you can't get support, but you're hesitant to move your site. Done in the right order, a WordPress migration can be completed without downtime and without affecting your SEO. In this guide we explain two methods: migrating with a plugin and migrating manually (files + database).
MerkezHost migrates up to 3 websites free of charge for new customers. This guide is for those who want to do it themselves.
Pre-migration checklist
- Make sure you have cPanel/FTP and phpMyAdmin access on the old hosting.
- Have your new hosting account ready, with your domain still pointing to the old hosting.
- Know which panel (registrar or Cloudflare) manages your domain's DNS.
- Don't add content to the site during the migration; if you take orders, choose a low-traffic time.
- A day in advance, lower the TTL of the domain's A record (e.g. 300 seconds). Details: DNS records guide.
Method 1: Migrating with a plugin (the easiest)
Migration plugins such as All-in-One WP Migration, Duplicator and similar export your site's files and database as a single package.
- Install the migration plugin on the old site and download the backup file to your computer with Export.
- Install a clean WordPress on the new hosting.
- Install the same plugin on the new WordPress and upload the file with Import.
- When the process finishes, log in with the old site's administrator username and password; open Settings » Permalinks and click Save Changes.
Free plugin versions may limit the import size. For large sites, the manual method is more reliable.
Method 2: Manual migration
1. Back up the files
On the old hosting, select the public_html folder in the cPanel File Manager, create a .zip archive with Compress and download it. If you have SSH access:
cd ~/public_html
tar -czf ~/site-dosyalari.tar.gz .2. Export the database
Find the name of the database the site uses from the DB_NAME line in the wp-config.php file. In phpMyAdmin, select this database and download it via Export » Quick » SQL. With SSH:
mysqldump -u kullanici -p --single-transaction --default-character-set=utf8mb4 veritabani_adi | gzip > ~/site-db.sql.gz3. Create a database on the new hosting
In cPanel, create a new database and user with the MySQL Database Wizard and grant the user ALL PRIVILEGES. Note down the details.
4. Upload the files and database
- Upload the file archive to the new hosting's
public_htmlfolder and extract it. - In phpMyAdmin, select the new database and upload the SQL file with Import. For large files, use the SSH method in our MySQL restore guide.
5. Update the wp-config.php file
Enter the new database details:
define( 'DB_NAME', 'yeni_veritabani' );
define( 'DB_USER', 'yeni_kullanici' );
define( 'DB_PASSWORD', 'yeni_parola' );
define( 'DB_HOST', 'localhost' );If your domain isn't changing, you don't need to change the URLs in the database.
Test your site without changing DNS
Before pointing DNS to the new server, you can test the site on your own computer using the hosts file. This way your visitors keep seeing the old site while you check the new server.
- Windows: Open Notepad as administrator and edit the
C:\Windows\System32\drivers\etc\hostsfile. - macOS / Linux:
sudo nano /etc/hosts
YENI_SUNUCU_IP alanadiniz.com www.alanadiniz.comSave and reopen your browser. Test pages, forms, login and checkout steps. Don't forget to delete this line when testing is done.
Point DNS to the new hosting
If everything works, replace your domain's nameservers with the new hosting's nameservers, or update the A record to the new IP address. While DNS propagates, some visitors will see the old server and some the new one, so don't shut down the old hosting for at least a few days.
Post-migration checks
- SSL: Check that the SSL certificate has been issued on the new hosting (cPanel » SSL/TLS Status » Run AutoSSL).
- Permalinks: If pages return 404, click Save Changes under Settings » Permalinks.
- Email: If your email is on the old hosting, create the accounts on the new hosting too and check the MX records.
- Cache: Clear your caching plugin; if you've moved to a LiteSpeed server, follow our LiteSpeed Cache guide.
- Search Console: Monitor crawl errors for a few days after the migration.
Common problems
"Error establishing a database connection"
Check the database name, username and password in wp-config.php. Make sure the user is assigned to the database in cPanel.
Special characters appear garbled
Export and import the database with the utf8mb4 character set; check that DB_CHARSET is set to utf8mb4 in wp-config.php.
White screen
This is usually caused by a PHP version incompatibility. In cPanel, choose a version compatible with the one on the old hosting under Select PHP Version and try again.
Conclusion
Preparing and testing the site on the new server first, and only then changing DNS, is the secret of a zero-downtime migration. When moving to our cPanel hosting plans with LiteSpeed and NVMe SSD infrastructure, you can leave the migration to us free of charge.
Frequently Asked Questions
Will my site go down during the migration?
Not if it's done in the right order. DNS is changed only after the site has been tested and is ready on the new server; the old hosting is kept running until DNS has propagated.
Will my SEO rankings be affected after the migration?
As long as the domain name and URL structure stay the same, your rankings won't be affected. If your site speed improves, you may even see a positive effect.
Can you do the migration for me?
Yes. MerkezHost migrates up to 3 websites free of charge for new customers; simply open a support ticket.
