Knowledgebase: FTP Access
Public_HTML and 'WWW' Folders
Posted by - NA - on 05 June 2004 01:40 PM


The public_html folder is the web root for your primary domain name. This means that public_html is the folder where you put all website files which you want to appear when someone types your main domain (the one you provided when you signed up for hosting).

In other words, when someone types your domain name into their browser, whatever is in the public_html folder is what will be shown to them.

EXAMPLE If you have a file called index.html (or any of the other default filenames) in the public_html folder, it will display that page. If you do no have a default file in the public_html folder (such as index.html, default.html, etc.), then a list of files in the public_html folder will be shown (which is not cool, because people will see what you have on the backend of your website without actually SEEING your website).
To see the path in File Manager with the corresponding URL in a web browser, see:

  • /public_html/ -->

  • /public_html/pagename.html -->

  • /public_html/folder/ -->

  • /public_html/folder/page.html -->

    Note: replace with the primary domain on your account (the one you originally signed up with, unless you changed it).

Public_HTML vs 'WWW'

Public_HTML and 'www' folders are NOT the same.

  • Public_html is the main place your public files are stored in for your websites and general public content.

  • 'www' is just a shortcut to public_html (all files uploaded to 'www' actually end up in public_html).

This type of links are known as symbolic links.

Add-ons and Subdomains

You can also create add-on domains and subdomains, and these will use a folder inside public_html.

Example If you create an add-on domain called it will use a subfolder similar to /public_html/ (unless you specified otherwise). Or you could create a subdomain called and it would use a subfolder similar to /public_html/orangetimes/ (unless you specified otherwise).

If is defined as a subdomain, and is defined as an add-on domain, then the following examples apply (the path in File Manager corresponds to the URL in a web browser):

  • /public_html/orangetimes/ -->

  • /public_html/ -->

    Note: replace with the primary domain on your account and replace with the additional domain you added in the Addon Domains section of cPanel.

If you do not want additional domains to be subfolders of public_html, then a Reseller, VPS or Dedicated hosting plan might be a better solution for you, since you can put each domain in its own cPanel to keep it separate from other domains. Shared accounts only get one cPanel, which is why all add-on domains are subfolders of the public_html folder.

(2225 vote(s))
This article was helpful
This article was not helpful

Comments (1)
Coty Skaj
13 August 2006 06:28 AM
Thanks !!! that was helpful information to know about.
Post a new comment
Full Name:
Help Desk Software by Kayako fusion