Welcome to Web Hosting Forum - Net Hosting Talk

Register now and be part of our community! When you register with the Net Hosting Talk you can join in with topics, start new topics, and generally be a part of the first level of our community. It's also quick and totally free, so what are you waiting for?

what is the differences between public_html and www folder in cpanel?

jeanette

Newbie
Messages
1
Reaction score
0
Hello, 

in these folders I have the same content and which is the real one and which one should I migrate?
 

geniushost 

Premium Member
Messages
33
Reaction score
1
The www folder is a direct access to the public_html folder, I recommend not to delete this access since it is used so that your site shows the same content when consulted with or without www. it is managed internally by your cpanel.
 

MilesWeb

Newbie
Messages
17
Reaction score
0
Hello, Jeanette:

On our server, the public_html directory is where your website's default files are pulled from. The www directory is simply a symbolic link to the public_html one. So anything you place in either directory will be identical when viewed from the other directory on the server.
If you have a local site setup, and all of the site files are in a directory called www, simply opening up that directory, and then uploading all of those files to the public_html directory on our server should be all you need to do.
You'll need all of your local site files on the server, so I'd recommend any that you're seeing in your local www directory get uploaded to the server's public_html directory. Or you can put them in the www directory on the server as well, as again this is simply a pointer to the exact same files found in the public_html directory.
The www folder is a direct access to the public_html folder, I recommend not to delete this access since it is used so that your site shows the same content when consulted with or without www. it is managed internally by your cpanel.
 

Terresce

Newbie
Messages
3
Reaction score
0
Cpanel have alias set to point public_html to www ..both show the same files its just the mirror image this things are done for the apache config that cpanel uses ..so no need to worry about this one.
 

Advertisement

Top