Which folder should I upload my website files to?

Each website in your hosting account has its own folder, called the document root. Whatever you put there is what the browser shows. If you upload the files to a different folder, the site comes up blank or shows the default page.

Main domain

Files go inside public_html. The home page must be named index.html or index.php:

public_html/index.html
public_html/images/example.jpg
public_html/contact.html

Other domains and subdomains

Each additional domain or subdomain has its own folder. On recently created sites it is usually next to public_html, named after the domain (for example otherdomain.com/). On older accounts it may be inside public_html (for example public_html/otherdomain.com/). Don't guess: check it as explained below.

How to see each site's folder in cPanel

  1. Log in to cPanel and open Sitios web (Websites).
  2. Click Gestionar (Manage) on the site you want. The overview shows its folder path (document root) and a shortcut to its files.

cPanel Websites: list of domains and subdomains with the Manage button

How to upload the files

  • cPanel File Manager: open the site's folder and use «Cargar» (Upload). For many files, upload a .zip and use «Extraer» (Extract).
  • FTP: with a program such as FileZilla. See How can I upload my files via FTP?. If you create an FTP account for a single site, set its directory to that site's folder.

If you use WordPress or another application installed with Softaculous, you don't need to upload anything by hand: the application is already in the right folder.

Screenshots show cPanel in Spanish.

More information


Was this article helpful?

mood_bad Dislike 9
mood Like 6
visibility Views: 66608