The public_html folder structure
What lives in which folder, where your site goes and where addon domains and subdomains go.
When you open File Manager, the starting point is your home directory. The most important folders are:
| Folder | Purpose |
|---|---|
public_html | The web root of the main domain. Everything here is available over the web. |
mail | Email data. Do not edit it manually. |
etc, logs, tmp | cPanel system folders. |
ssl | Certificates and keys. |
www | A shortcut (link) to public_html. |
Rules#
- Put files that should be public in
public_html. The home page isindex.htmlorindex.php. - Keep sensitive files (backups, database exports, scripts with passwords) outside
public_htmlor protect them: Password-protecting a directory. - The folder name
public_htmlstays the same when domains are added; you change nothing for the main domain.
Addon domains and subdomains#
When creating an addon domain or subdomain you choose the folder its site goes into. This is often a folder inside public_html, e.g. public_html/blog or public_html/seconddomain.com. See Adding an addon domain and Creating a subdomain.
Vam je bil ta članek v pomoč?
Hvala za vaše mnenje! Potrebujete pomoč? Odprite zahtevek.
Sorodni članki
Adding an addon domainHow to host a second domain on the same hosting account with its own folder and site.Creating a subdomainHow to create a subdomain like blog.yourdomain.com with its own folder.File ManagerThe basics of managing files in your browser: upload, edit, delete and search.FTP access and FileZillaHow to connect to your hosting with FileZilla and transfer files.
