FAQ Getting Started

What is the public_html folder?

It is the one folder on your hosting account that visitors can actually reach. Everything your site shows has to live inside it.

Updated 4 min read Beginner

The public_html folder is the one part of your hosting account that a website visitor can actually reach. It is your account's document root — whatever sits inside it is what gets served when someone loads your domain. Everything else on the account, from configuration files to backups, is invisible from the outside no matter how the site itself behaves.

Why the folder exists at all

A hosting account holds more than a website: email, databases, logs, and files a site uses privately but should never be downloaded directly. Separating a single public folder from everything else means the server only ever exposes what is deliberately placed inside it. Nothing outside public_html is served to a browser, which is a safety boundary as much as an organisational one.

What goes inside it

Your homepage file — usually index.html or index.php — belongs directly inside public_html, along with every other file and folder your site needs: images, style sheets, scripts, and any subfolders your site is built with. If you are running more than one website on the same account through addon domains, each addon domain gets its own separate folder alongside public_html, keeping the sites from mixing together.

Watch for an extra nested folder

If a site was exported or downloaded as a folder — for example a folder named after the project — do not upload that whole folder into public_html. That produces a site only reachable at yourdomain.com/project-name rather than at the domain itself. Upload the contents of the folder, not the folder.

What it means when a site does not show up

If files have been uploaded but the site still is not appearing, the two most common causes both trace back to this folder: the files landed a level too deep because of the nested-folder mistake above, or there is no recognised homepage file sitting directly inside it. A directory listing or a blank page where your site should be almost always means one of those two things rather than a problem with the hosting account.

Finding it in your control panel

Open the file manager in your control panel and it is normally the first folder you see. From there you can upload files directly, extract a zipped archive, or check permissions if a page is loading unexpectedly blank. Uploading your first website walks through the full process from an empty account.

Related reading