How Do I Create and Remove an Addon Domain?
An addon domain is a secondary domain hosted on a cPanel account. Addon domains typically have their distinct website.
Once you have purchased a domain, or if you already own a domain that you would like to host as an addon domain, additional information for how to point your domain to your HostGator server is available here, including instructions for making this change at a variety of domain registrars.
WHM users will not be able to create an addon domain in your cPanels unless you set "Max Addon Domains" to more than zero in your WHM packages. You must also have subdomains set to a number equal to (or greater than) the number of addon domains you wish to allow.
How to Create an Addon Domain
With addon domains, you can host multiple different domains with different website content, all under the same disk space and bandwidth of one cPanel. Here is a video tutorial in creating an addon domain in cPanel.
Note: Your control panel may look slightly different depending on the theme you are using. However, the steps will be the same for all themes based on the X3 theme.
To Create an Addon Domain:
- Log in to your cPanel.
- Click the Addon Domains icon under Domains. There are three fields cPanel asks for when creating an addon domain.
- New Domain Name: Enter the new domain name, but do not put HTTP or www in the name.
- Directory/FTP Username/subdomain Name: This is the folder that cPanel creates, typically located in the public_html folder. However, you can have the folder created outside of the public_html directory. Please note that moving the folder outside of the public_html content could potentially be migrated to a document root elsewhere. cPanel will automatically suggest a name for the folder based on the domain name. You will want to ensure that the name you provide does not already exist as a folder.
- Password: Fill in any password you want here. This password is used for an FTP account that cPanel automatically creates. (You likely will not ever need this password, so we suggest picking a random password and forgetting about it.)
Your new domain is now successfully added. You can upload the website files to the specific addon folder created in the public_html folder.
Point an Addon Domain to a Specific or Existing Folder
Sometimes you already have content uploaded to a specific folder on your account, or you want the content to be in a different folder than the default. In that case, you would specify the correct folder in the "Username/directory/subdomain Name" field in the instructions above, instead of the one it suggests. If the folder does not exist, it will create it for you.
If the folder already exists, it may give you a warning that the username/directory/subdomain already exists, but in this case, you entered something that already exists on purpose. You can safely ignore this warning since you intend to point the addon domain to a directory that already exists.
Check out this article for your reference:
How to Remove an Addon Domain
To delete an addon domain, please do the following:
- Log in to your cPanel.
- Click the Addon Domains icon under Domains.
- At the bottom, under Actions, click Remove.
Removing the addon domain only removes the domain from the DNS and server configuration. Your files and databases are not deleted or affected by removing the addon domain (other than the fact that you can no longer access the affected files via that domain name).