How Your Site Works

Your website is made up of a group of files and directories, much like the Documents folder on your home computer. In this case, though, everyone in the world can see some of your files. You can manage the directories and files of your website in cPanel using File Manager, or via FTP.

There are three main directories to be concerned with:

/home/your_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. You will start out in your home directory when connecting by FTP, Web Disk, or the File Manager.

/home/your_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/your_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 viewable by anyone on the internet.. (/home/your_username/www/ is the same directory as /home/your_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 specify a page in the URL):

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

 

 

 

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 you wish to be visible on the Internet within public_html or a subdirectory of public_html. If you placed them in / for example, no one will be able to view them.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Different Ways to Upload Website Files

For your visitors to be able to visit your site, you will need to add some files to it. You can...

Disk usage analysis - Find out what files, folders, and email accounts are using the most storage space

This article will give you information about how to view your disk usage to find out what files,...