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).

Or put another way, when someone types your domain name into their browser, whatever is in the public_html folder is what will be shown to them. 


Home Directory


Examples


For 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_htmlfolder (such as index.html, default.html, etc.), then a list of files in the public_html folder will be shown.

Path in File Manager (or in FTP)*
Corresponding URL in a Web Browser
/public_html/
http://www.example.com/
/public_html/pagename.html
http://www.example.com/pagename.html
/public_html/folder/
http://www.example.com/folder/
/public_html/folder/page.html
http://www.example.com/folder/page.html



Replace example.com with the primary domain on your account (the one you originally signed up with, unless you changed it).


Content of article hostgator