How to Convert an Addon Domain to a Primary Domain in Cpanel?

If you want to convert an addon domain to a primary domain in cPanel, the short answer is: you cannot directly switch it inside cPanel. You must either contact your hosting provider to change the primary domain from the server side (WHM/root level) or create a full backup and migrate your website manually to a new cPanel account where the addon domain becomes the primary domain. Now let’s go step-by-step and explore the complete process in detail.

Understanding Primary vs Addon Domain in cPanel

Before making any changes, it’s important to understand how cPanel manages domains.

In cPanel:

  • Primary Domain: The main domain assigned when the hosting account is created.
  • Addon Domain: An additional domain hosted under the same cPanel account.
  • Subdomain: A domain extension like blog.example.com.

The primary domain controls:

  • Account username path (e.g., /home/username/)
  • Main document root (public_html)
  • Account identity within the server

Addon domains usually have:

  • Separate document roots (e.g., /public_html/addondomain.com/)
  • Shared resources (bandwidth, disk space, IP)

Because the primary domain is tied to the account configuration at the server level, cPanel does not allow direct swapping.

Why Convert an Addon Domain to Primary?

There are several practical reasons:

  1. Brand Repositioning – You want the addon domain to become your main brand.
  2. SEO Strategy – Moving focus from an old domain to a new main domain.
  3. Selling the Old Domain – You want to detach it from hosting.
  4. Better Account Structure – Cleaner hosting management.

If you’re running a business website or SEO campaign, making the right domain primary can improve organization and long-term scalability.

Method 1: Ask Hosting Provider to Change the Primary Domain (Recommended)

The easiest and safest method is contacting your hosting provider.

If your hosting provider uses WHM (Web Host Manager), they can:

  1. Modify the account.
  2. Replace the primary domain.
  3. Keep files intact.
  4. Adjust Apache/Nginx configurations automatically.

Steps to Follow:

  1. Backup your entire cPanel account.
  2. Open a support ticket.
  3. Request:

“Please change my primary domain from the olddomain.com to newdomain.com (currently an addon).”

Your host will:

  • Update the account domain.
  • Adjust DNS settings.
  • Maintain your email accounts.
  • Reassign document roots properly.

Pros:

  • No file migration needed.
  • Minimal downtime.
  • Safe and clean process.

Cons:

Method 2: Manual Migration (If Host Doesn’t Support)

If your hosting company refuses to change the primary domain, you must manually migrate.

Step 1: Full Backup

In cPanel:

  1. Go to Backup Wizard
  2. Download:
    • Home Directory
    • MySQL Databases
    • Email Forwarders & Filters

Or create a Full Account Backup.

Step 2: Remove the Addon Domain

Before proceeding:

  1. Go to Domains
  2. Remove the addon domain.
  3. Keep files saved locally.

Step 3: Create a New cPanel Account

You must:

  1. Create a new hosting account using addon domain as the primary domain.
  2. This can be done via your hosting client area.

Step 4: Upload Website Files

Now:

  1. Go to File Manager.
  2. Upload the website files into:
    Code
    public_html/
  3. Extract files.
    If your addon domain was located in:

    Code
    public_html/addondomain.com/

    Move all contents directly into:

    Code
    public_html/

Step 5: Import Database

  1. Open phpMyAdmin
  2. Create a new database.
  3. Import your SQL file.
  4. Update configuration file:

For WordPress example:

Code
wp-config.php

Update:

  • Database name
  • Username
  • Password

Step 6: Update URLs (If Needed)

If domain structure changes:

For WordPress:

  • Update siteurl
  • Update home values

You can use search and replace tools inside the WordPress admin.

Important DNS Configuration

After conversion, update:

  • Nameservers
  • A Record
  • MX Records (if using email)

You can manage DNS inside cPanel → Zone Editor or via your domain registrar.

Email Account Considerations

If your addon domain had emails like:

Code
[email protected]

You must recreate them in the new account.

Email data will not automatically transfer unless:

  • You restore a full cPanel backup
  • Or manually migrate mail folders

SEO & Google Search Console Considerations

If the old primary domain is being retired:

  1. Set up 301 redirects.
  2. Update sitemap.
  3. Update canonical tags.
  4. Add the new domain to Google Search Console.
  5. Submit change of address (if applicable).

This ensures you don’t lose ranking authority.

Common Mistakes to Avoid

❌ Deleting addon domain before backup
❌ Forgetting to export database
❌ Not updating configuration file
❌ Ignoring email migration
❌ Skipping DNS propagation waiting time

DNS changes may take 24–48 hours to fully propagate.

Which Method Should You Choose?

SituationBest Method
VPS/Dedicated with WHM accessChange via WHM
Shared Hosting (support available)Ask host
Shared Hosting (no support)Manual migration
Multiple websitesCreate separate cPanel accounts

Pro Tip for Business Websites

If your addon domain is becoming your main brand, consider:

  • Using a fresh hosting account
  • Using a dedicated IP
  • Enabling SSL immediately
  • Cleaning old redirect chains

This keeps your site structure optimized and professional.

Final Thoughts

Convert an addon domain to a primary domain in cPanel is not a one-click action. Since cPanel ties the primary domain to the hosting account itself, you must either request your hosting provider to change it from the server side using WHM or manually migrate your website to a new hosting account where your addon domain becomes the primary domain.

If you are unsure, always back up first and consult your hosting provider before making structural changes.