Share This Post

Share on facebook
Share on linkedin
Share on twitter
Share on email

Overview

Domain aliases are domains that you own, but which do not contain any content. Instead, they point to the contents of another domain or subdomain on your account. This is useful, for example, to hold a domain that you will later sell, or to redirect traffic to another domain.

Create a New Alias

To add a domain alias, enter the domain name in the text box and click Add Domain.

To open the alias domain’s home directory with the File Manager interface (cPanel >> Home >> Files >> File Manager), click the link that corresponds to that alias under the Domain Root column of the Remove Aliases table.

When you create an addon domain, parked domain, subdomain, or main domain, the system will attempt to automatically secure that domain with the best-available existing certificate. If no certificate exists, the system will generate a self-signed certificate to secure the new domain.

If AutoSSL is enabled for the account that owns the new domain, the system will add a request for an AutoSSL certificate to secure the new domain and install it when available.

Enable or disable domain alias redirection

To enable or disable redirection of a domain alias, perform the following steps:

  1. Click Manage Redirection for the domain alias that you wish to manage.
  2. To redirect the domain, enter the link to which you wish to redirect the domain alias in the text box.
  3. Click Save. To disable the redirection, click Disable Redirection.

Remove Aliases

To remove an existing domain alias, perform the following steps:

  1. Click Remove for the alias that you wish to remove.
  2. Click Yes to confirm that you wish to remove the domain alias. To retain the domain alias, click No.

Search aliases

To search through the list of domain aliases, enter the search criteria in the Search text box and click Go. Results that match your search criteria will populate the table.

Domain alias email accounts

To add new email accounts, use cPanel’s Email Accounts interface (cPanel >> Home >> Email >> Email Accounts), or run the /usr/local/cpanel/scripts/addpop script from the command line.

  • To move one email account under a domain, run the following command:

    mv /home/OLD_ACCOUNT/mail/DOMAIN_NAME/EMAIL_ACCOUNT /home/NEW_ACCOUNT/mail/DOMAIN_NAME/
    When you run this command, the system creates the /home/NEW_ACCOUNT/mail/DOMAIN_NAME/ directory.
  • To move all of the email accounts under a domain, run the following command:

    mv /home/OLD_ACCOUNT/mail/domain_name /home/NEW_ACCOUNT/mail
    After you move the files, change the new account’s ownership with the following command:
    chown -R NEW_ACCOUNT:NEW_ACCOUNT /home/NEW_ACCOUNT/mail/domain_name

If you remove the domain alias, its email accounts will no longer appear in the Email Accounts interface (cPanel >> Home >> Email >> Email Accounts). However, the email accounts’ contents still exist in the mail folder of the user’s home/username/mail/ directory.

  • If you add the domain again, to the same account as the primary domain, an addon domain, or an alias, the email accounts reappear in the interface.

  • If you change the account’s primary domain name to the un-aliased domain name, the email accounts reappear in the interface.

    • You or your hosting provider can perform this action in WHM’s Modify an Account interface (WHM >> Home >> Account Functions >> Modify an Account).
    • When you perform this action, the former primary domain name’s mailboxes will not appear in the Email Accounts interface (cPanel >> Home >> Email >> Email Accounts). However, the files will still exist.
  • If you move the domain to a different account, you must add the email accounts manually and move the contents of the email accounts manually.

Addon versus alias domains

CharacteristicAddon domainsAlias domains
The main domain appears in the address bar.YesNo
The domain uses the following Apache directive:VirtualHostServerAlias
The domain uses separate logs.YesNo
The domain uses separate stats.YesNo
The system treats the domain as a subdomain (other than the URL).YesNo
This type of domain is ideal for multiple domains that share the same address.NoYes

 

Subscribe To Our Newsletter

Get updates and learn from the best

More To Explore

Email

Email Deliverability in cPanel

Use this interface to identify problems with your mail-related DNS records for one or more of your domains. The system uses these records to verify that other servers can trust it as a sender.

Virus Scanner

Overview The Virus Scanner interface scans your cPanel account for security threats. If ClamAV® Virus Scanner identifies a security threat, the system prompts you to perform an

Do You Want To Boost Your Website?

Share your requirements with us and we will get in touch with you shorlty.

ask
anything...

Get in touch