Where should I upload the website files in cPanel?

There are three main directories to be concerned with:




 /home/username/ - This is your home directory. All of your files are stored within this directory. Files placed directly in this directory will not be visible on the internet.

 /home/username/public_ftp/ - This is the directory used for anonymous FTP access. Any files in this directory can be downloaded by anyone if anonymous FTP access is enabled.

 /home/username/public_html/ (www) - The public_html directory contains the files for your site. Files in public_html and any subdirectories of public_html will be able to be viewed by anyone on the internet.. (/home/username/www/ is the same directory as /home/username/public_html/).


When someone views a directory in your public_html area, they will see the index page for that directory. When creating your index page, you should use one of the following names (the first one found will be shown if the visitor doesn't type in a specific page in their URL):

index.php, index.php5, index.php4, index.php3, index.perl, index.pl, index.plx, index.ppl, index.cgi, index.jsp, index.jp, index.phtml, index.shtml, index.xhtml, index.html, index.htm, index.wml, Default.html, Default.htm, default.html, default.htm, home.html, home.htm, index.js

Warning: When adding files to your site, it is important that you add them in the right place. For example, you will need to place files that you wish to be visible on the internet in public_html or a subdirectory of public_html. If you placed them in /home/username/ for example, no one will be able to view them.

cPanel Video tutorials will allow you to easily learn.
  • Email, SSL
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What is cPanel?

cPanel is a control panel for Linux-based web hosting and is the most used control...

Domains

SubDomains: Subdomains are URLs for different sections of your website. They use your main domain...