Changing your website’s primary domain can seem challenging, but with StableCluster’s cPanel hosting, the process is simple and structured.
Whether you’re rebranding your business or upgrading to a better domain name, migrating your site correctly ensures smooth functionality, data integrity, and SEO stability.
This step-by-step guide will help you safely move your website to a new domain name using cPanel.
Prerequisites
Before you begin, make sure you have:
-
StableCluster cPanel access for both old and new domains.
-
A complete backup of website files and databases.
-
Updated DNS records for the new domain.
-
FTP or File Manager access to transfer files.
-
Basic understanding of cPanel tools.
Step 1: Backup Website Files and Database
Backup Files:
-
Log in to your StableCluster cPanel.
-
Open File Manager → public_html.
-
Select all files and click Compress to create a ZIP file.
-
Download the ZIP backup to your computer.
Backup Database:
-
Go to phpMyAdmin from cPanel.
-
Select your website’s database.
-
Click the Export tab → choose Quick method → click Go to download the
.sqlfile.
Step 2: Add the New Domain in cPanel
-
Go to Addon Domains in your cPanel.
-
Enter your new domain name and set the document root (e.g.,
/public_html/newdomain). -
Click Add Domain to complete the process.
Step 3: Transfer Website Files
-
Open File Manager again.
-
Navigate to the new domain directory (
public_html/newdomain). -
Upload the ZIP file you created earlier.
-
Extract the ZIP archive to restore all files.
Step 4: Create a New Database and Import the Old One
-
Go to MySQL Databases in cPanel.
-
Create a new database and note its name.
-
Create a new user and assign it to the database with full privileges.
-
Open phpMyAdmin, select the new database, and click Import.
-
Upload your previously exported
.sqlfile and click Go.
Step 5: Update Configuration Settings
For WordPress Sites:
-
Open File Manager → wp-config.php.
-
Update the following lines:
-
Save and close the file.
For Other CMS or Custom Sites:
-
Update any configuration files or database entries containing the old domain name.
-
To update URLs in WordPress, run this SQL query in phpMyAdmin:
Step 6: Update DNS Records
-
Go to your domain registrar and update the A record to point to StableCluster’s server IP.
-
If using Cloudflare or a CDN, update domain settings there as well.
-
Allow up to 24 hours for DNS propagation.
Step 7: Set Up 301 Redirects for SEO
To preserve SEO rankings and redirect traffic from the old domain:
-
Open the
.htaccessfile under the old domain’s public_html. -
Add the following lines:
-
Save and upload the updated file.
Step 8: Update Google Search Console and Analytics
-
Log in to Google Search Console → Add your new domain.
-
Use the Change of Address tool to notify Google about the migration.
-
Update your property in Google Analytics.
-
Scan your website for broken links and fix them.
Step 9: Test and Verify Everything
-
Visit your new domain in a browser.
-
Check all pages, forms, and images for proper loading.
-
Run an SEO audit to verify redirects and indexing.
Conclusion
Migrating a website to a new domain on StableCluster cPanel is simple when done step by step.
By carefully following this guide, you can ensure a smooth domain transition — keeping your website online, secure, and SEO-friendly throughout the process.