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.
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.
More Server Tips
How to Prevent Search Engines from Indexing Your Web Pages and Files What is the Use of .ftpquota File? How to Download the .ftpquota File How to Install Apache HTTP Server on Windows How to Install Apache HTTP Server on Windows: The Apache Lounge Version Apache vs. Apache Lounge: Which One to Choose? How to Set FTP Quota for an FTP Account Apache Localhost Loading Very Slow: Here is the Solution List of All HTTP Status Codes and Error Messages Top 5 Free IP Address Lookup SitesServer Tips