+254725682556 +254725052660 info@ziprof.co.ke
Client Area

Domain Management

How to Change Your Website's Primary Domain in cPanel or DirectAdmin

Your hosting account's primary domain is the domain your account was originally set up with. It's tied to your hosting username and home directory, so unlike an addon domain or subdomain, you can't rename it yourself from inside cPanel or DirectAdmin. If you want a different domain, for example an addon domain you've been building up, to become your main one, you'll need to request the change from your host.

Why You Can't Just Rename It Yourself

The primary domain is linked to your account's home directory (public_html) and server configuration at the account level, not just a DNS or control panel setting. Swapping it means reassigning which domain owns that root directory, which is an account-level change your host needs to make to avoid breaking file paths, email accounts, and SSL certificates tied to the old primary domain.

Step 1: Confirm Your Current Primary Domain

In cPanel

  1. Log in to cPanel.
  2. Check the top-right corner of the dashboard. It usually shows your primary domain next to your username.
  3. You can also go to Domains in the sidebar. Your primary domain is marked with a "Primary" label, separate from any addon domains listed below it.

In DirectAdmin

  1. Log in to DirectAdmin.
  2. Go to Domain Setup.
  3. Your primary domain is the one your account was originally created with. Any domains added afterward are listed separately as additional domains.

Step 2: Back Up Before Requesting the Swap

Changing the primary domain rebuilds part of your account's file and email structure. Take a full backup of your files, databases, and email accounts before requesting the change, in case anything needs to be restored afterward.

Step 3: Request the Change from ZIPROF Support

  1. Open a support ticket from your ZIPROF client area, or contact support directly.
  2. Tell them which domain should become the new primary domain and which one should become secondary. The old primary is usually added back as an addon domain so it keeps working under the same account.
  3. Let support know about any email accounts, SSL certificates, or cron jobs tied to either domain, so they can carry those over correctly during the swap.

Once the change is complete, check that your website loads correctly under the new primary domain, that email accounts on both domains still work, and that SSL certificates are reissued if needed.

If your goal is just to have visitors land on a different domain without restructuring your whole account, setting up an addon domain with a redirect is often simpler than a full primary domain change.