What is public_html?

public_html is the public folder on all web hosting accounts. Any files contained within this directory may be accessed from the domain name. Here are some examples:

  • /public_html/file1.html = yourdomain.com/file1.html
  • /public_html/somefolder/somefile.jpg = yourdomain.com/somefolder/somefile.jpg
  • /privatefile.html = Not accessible through your domain, since file is outside of the public_html folder

Note that the www folder is a shortcut to public_html.


Article ID: #HC5094

Was this answer helpful?