Site icon BDWEBIT Blog

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

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:

The primary domain controls:

Addon domains usually have:

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:

Pros:

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:

Step 6: Update URLs (If Needed)

If domain structure changes:

For WordPress:

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

Important DNS Configuration

After conversion, update:

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

Email Account Considerations

If your addon domain had emails like:

Code
info@addondomain.com

You must recreate them in the new account.

Email data will not automatically transfer unless:

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?

Situation Best Method
VPS/Dedicated with WHM access Change via WHM
Shared Hosting (support available) Ask host
Shared Hosting (no support) Manual migration
Multiple websites Create separate cPanel accounts

Pro Tip for Business Websites

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

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.

Exit mobile version