What is the difference between "www" and "public_html" folders?


If you might have noticed that there are two folders named as public_html and www from your hosting control panel file manager or via FTP client such as FileZilla.

What is the difference between "www" and "public_html" folders

The public_html folder is the root folder of the site where all the publicly accessible website files and folders are stored.  

The www folder is the symbolic link to the public_html folder and it is utilized by the Apache web server for some inward purposes. 

What is vital to remember is that when you are uploading files to your website, you should upload them into the public_html folder. In case if you don't recognize what you are doing, you shouldn't touch the www folder for the security purposes.

Was this answer helpful?

 Print this Article