The root directory of your website has the content that loads when visitors access your domain name in a web browser. You need to put your “index file” in your website’s root directory for visitors to see your website, otherwise, it will display the FORBIDDEN page or files and folder archive list.
Website-related applications might also need to know your website’s root directory. Website’s root directory depends on whether the domain name is your primary domain name, addon domain or another type.
- Your primary domain name’s root directory is /public_html.
- Addon and subdomain names’ root directories were specified when they were set up.
Small hosting plans such as starter and economy allows you to host one domain which by default is your public_html.
Other hosting options that lets you host multiple domains, public_html becomes your primary domain (the domain name used to reference your hosting account) and other domain names are located either in your home directory or public_html or anywhere else with their names as specified while adding them from addon domain section of your cPanel.
For instance: By default addon domain yourname.com would be added as yourname.com folder in your cPanel’s home directory which can be accessed from the File Manager. (The home directory is the folder above the public_html directory on your hosting account.)
How to find Domains listed in cPanel?
Log in to your SANGKRIT.net account and follow these steps:
- Click Web Hosting.
- Next to the cPanel account you want to use, click Manage.
- Click cPanel Admin, in Domains section click the domain type you would like to view or manage.
Click either Subdomains or Addon Domains, depending on the type of domain you’re using. The root directory displays in the Document Root field.