How to Move WordPress to a New Domain
Migrate your WordPress site to a new domain name without losing SEO rankings or breaking links.
Moving WordPress to a New Domain
Rebranding or changing your domain? Follow this guide to migrate WordPress without losing your SEO rankings or breaking existing links.
Before You Start
- Register the new domain
- Set up hosting for the new domain (or add it as an addon domain)
- Install a fresh WordPress on the new domain (optional — we will copy the old one)
Method 1 — Using Duplicator Plugin (Easiest)
Step 1 — Install Duplicator on old site:- Plugins → Add New → search "Duplicator"
- Install and activate
- Duplicator → Packages → Create New
- Click Next → Build
- Download both the Installer file and the Archive (.zip) file
- Via FTP or File Manager, upload both files to the new domain's
public_html - Visit
https://newdomain.co.ke/installer.php - Follow the installation wizard
- Enter new database credentials when prompted
- Update the site URL to the new domain
The Duplicator installer handles this automatically. Verify in:
- Settings → General — both URLs show the new domain
Method 2 — Manual Migration
Step 1 — Export database from old site:- cPanel → phpMyAdmin → select old database → Export → Go
Open the .sql file in a text editor and replace:
olddomain.co.ke → newdomain.co.ke
Use Search & Replace DB tool or do it in a text editor.
Step 3 — Copy files:Download all files from old public_html and upload to new domain's public_html.
Update database credentials for the new server.
Step 5 — Import database:cPanel → phpMyAdmin → select new database → Import → upload modified .sql file.
Step 6 — Set Up 301 Redirects on Old Domain
Keep the old domain pointing to your server and add redirects:
# In old domain's .htaccess
RewriteEngine On
RewriteRule ^(.*)$ https://newdomain.co.ke/$1 [R=301,L]
This preserves your SEO rankings by passing link equity to the new domain.
Step 7 — Update Google Search Console
- Add the new domain as a property in Google Search Console
- Submit your sitemap:
https://newdomain.co.ke/sitemap.xml - Use the Change of Address tool to notify Google of the domain change
Still need help?
Our Kenyan support team is on WhatsApp — real people, not bots. We respond in under 15 minutes.