The short answer to this question is the public_html/ directory.

For more detail, read on.

Every cPanel account has what is called a home directory. This is the directory that you would normally see when you connect via FTP, SFTP or SSH using your accounts primary cPanel user details.

Your website files should be uploaded into the public_html/ directory.

For example if your domain was mywebsite.com then a file located at public_html/mypicture.jpg would be served to the internet as http://mydomain.com/mypicture.jpg

The www item is nothing more than a shortcut to the public_html/ directory – you can treat it as the same thing if you find that easier.

All of the other files and directories are required to ensure your web hosting and email accounts function correctly. Therefore, if you are new to cPanel, stick purely to the public_html/ directory and you won’t break your hosting account.

Ця відповідь Вам допомогла? 221 Користувачі, які знайшли це корисним (474 Голосів)