It's going to depend if its an add on domain or a sub-domain, you mention both ..
- If you purchased this domain name it will be considered an Add On Domain,
- If it is one you created in your control panel yourself within one of your domains, it is considered a sub-domain, these are free and you can create as many as you like.
- An add on domain will require for the domain servers to be set to your vh servers and you will need to add on this domain in your control panel .. you will then
publish to public_html/addondomain
- The servers are already set for a sub-domain as it is dependent on your main domain or add on domain
- On your own computer it is best to create individual file folders for any domains you have, this helps keep them organized and prevents overwriting of any file names the same - e.g., index, contact, ....
- If it is a subdomain it will be found via
www.subdomain.domain.com and you will publish to public_html/subdomain