Enable or disable domain alias redirection
To enable or disable redirection of a domain alias, perform the following steps:
- Click Manage Redirection for the domain alias that you wish to manage.
- To redirect the domain, enter the link to which you wish to redirect the domain alias in the text box.
- Click Save. To disable the redirection, click Disable Redirection.
Remove Aliases
To remove an existing domain alias, perform the following steps:
- Click Remove for the alias that you wish to remove.
- 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 /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
Addon vs. alias domains
Characteristic
|
Addon domains
|
Alias domains
|
---|---|---|
The main domain appears in the address bar. | Yes | No |
The domain uses the following Apache directive: | VirtualHost | ServerAlias |
The domain uses separate logs. | Yes | No |
The domain uses separate stats. | Yes | No |
The system treats the domain as a subdomain (other than the URL). | Yes | No |
This type of domain is ideal for multiple domains that share the same address. | No | Yes |