In order for a website to appear on a domain, the folder for the domain must contain the files that will generate the website in the visitor's browser.
Where should I upload the website files on the hosting?
The main hosting domain is the domain that is hosted on the hosting package and the hosting package is named after that domain.
cPanel: Default main domain folder is: /public_html
The absolute path (if you need it) is: /home/USER/public_html
Once you place the site files in the /public_html folder, the site will be available at the main domain address.
Note: You place the files directly in the folder. If you mistakenly place the files in a separate folder inside the /public_html folder, the site will not be available at NEKI-DOMEN.RS but at NEKI-DOMEN.RS/neki-folder
DirectAdmin: The default folder for each domain, whether root or not, is always: /USER/domains/DOMAIN-NAME/public_html/
This is much better because unlike cPanel, each domain has its own separate folder, for example:
/USER/domains/DOMAIN-NAME-1/public_html/
/USER/domains/DOMAIN-NAME-2/public_html/
/USER/domains/DOMAIN-NAME-3/public_html/
Where to place additional domain site files?
All other domains, besides the main domain, should have their own separate folders.
In cPanel hosting it is always: /home/USER/public_html
In hosting it is always: /USER/domains/DOMAIN-NAME/public_html/
When adding a domain, you will need to specify which folder it will be.
In that folder you will need to place the site files.
cPanel: How to create an Addon domain?
DirectAdmin: How do I add a new domain for a new separate site in the DirectAdmin panel?





