Modify Addon Domain
Modify the document root for an addon domain
To modify the document root for an addon domain, perform the following steps:
- Click the edit icon () for the addon domain that you wish to manage under the Document Root column.
- Enter the new file path to the addon domain's document root in the available text box.
- Click Change.
Enable or disable addon domain redirection
To disable or enable redirection of an addon domain, perform the following steps:
- Click Manage Redirection next to the addon domain that you wish to manage.
- To redirect the domain, enter the link to which you wish to redirect the addon domain.
- Click Save, or, to disable the redirection, click Disable Redirection.
Remove an addon domain
To remove an addon domain, perform the following steps:
- Click Remove for the addon domain that you wish to remove.
- Click Yes.
Email accounts in addon domains
In the following examples:
old_account represents the cPanel account from which you wish to move the addon domain's email account or accounts.
new_account represents the cPanel account to which you wish to move the addon domain's email account or accounts.
domain_name represents the addon domain's name.
email_account represents the name of the addon domain's email account that you wish to move.
You can create email accounts for addon domains. To learn how to set up an email account for an addon domain, read our Email Accounts documentation.
When you remove the addon domain, its email accounts will no longer appear in the cPanel interface. However, the contents for this email account still exist in the
- If you add the domain back to the same account as the primary domain, an addon domain, or a parked domain, the email accounts reappear in the cPanel interface.
- If you move the domain to a different account, you must add the email accounts manually and move the contents of the email account manually. The email accounts must follow the same name and domain format that they previously followed.
- Use the Email Accounts interface to add new accounts, or run the
/scripts/addpop script to manually add new email accounts.
To move one email account under a domain, you can run the following command:
mv /home/old_account/mail/domain_name/email_account /home/new_account/mail/domain_name/
After you run this command, the system creates the
To move all 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, run the following command to change the ownership of the new account:
chown -R new_account:new_account /home/new_account/mail/domain_name.
Verify ownership of the email account after you move it.
Search addon domains
To search the list of addon domains, perform the following steps:
- Enter the search criteria into the Search box.
- Click Go.
The interface lists results that match your search criteria.
Addon vs. alias domains