What is the Difference Between public_html vs. www Folders?

In this post, we will look into public_html and www folders on a server and how they differ in detail.

If you have a hosting account or if you are running your own server you might have noticed that there are two folders named as public_html and www that seem to have identical content.

If you check these two folders via the File Manager in your hosting control panel, you will see both of them as folders. If you connect to your server via a FTP client such as FileZilla, you will notice that the www folder is shown as a shortcut.

What is the Difference Between public_html vs. www Folders?

The public_html folder is the root folder where all the publicly accessible website files and folders are stored. If you have addon domains, website folders associated with those domains are stored in here too.

The www folder on the other hand is a symbolic link to the public_html folder and it is used by Apache web server for some internal purposes. It is also said that the www folder is used for the www subdomain.

What is important to keep in mind is that when you are uploading files to your website, you should upload them into the public_html folder. And if you don't know what you are doing, you shouldn't touch the www folder at all.

Was this post helpful?

Please consider sharing it, and supporting us with a small tip. Thank you :)

f t g+ in