An addon domain is a domain name that that points to a subdirectory within your main account.
Addon domains must be a registered domain name that you own and configured to point to your web site's servers.
To add an Addon domain:
1) Login to cPanel > Click on the Addon Domains icon.
2) Enter the domain name in the New Addon Domain field.
3) Add the directory that the addon domain points to in the Username/directory name field.
Please make sure that you do following when setting up an addon domain name:
1) Before you actually setup addon domain name in your cPanel make sure that the DNS for your domain name is pointing to the WebHost.lk's nameservers and that you have given 24-48 hours for the DNS propagation.
2) Click the addon domain name feature of your cPanel and you will find following fields listed there:
a) Domain name : Here you will enter the domain name that you want to setup like xyz.com
b) Username/directory : Here you will give the username for your account. The username that you give here will be the directory created under the public_html folder of your account. For example "xyz"
c) password : Enter the desired password.
3) Create the addon domain name. Here you will find that the system has created a subdomain something like xyz.abc.com. Please do not remove this subdomain from your cPanel since this is system created and it's removal may cause addon domain to malfunction.
4) Upload all your addon domain files to following directory:
/public_html/xyz/ ( Make sure that you name the main page as index.html or any valid file extension)
5) You will now be able to view your site when www.xyz.com typed in the browser.