View Full Version : public_html vs domain name
wardend
08-26-2009, 04:17 PM
The file structure under the main folder includes both a public_html and www sub-folders. Which one should I make changes to? They appear to be linked. Does it matter?
Is it better file structure to put your primary domain files under either public_html or www or is it better to create a folder for your primary domain files and put them there?
Thanks, Ray
Your public_html directory is where you store files. The www directory is a symbolic "link" similar to "access_logs".
In either case, you probably want your primary domain's index.html page inside the public_html folder, and not public_html/mystuff/index.html.
Placing your documents into the public_html folder results in http://www.mydomain.com/mystuff
Placing your documents into a folder, then into the public_html folder results in http://www.mydomain.com/folder/mystuff
And so on.
Early Out
08-26-2009, 05:35 PM
In short, public_html and www are just two names for the same place. Putting files into one of them puts those files into both - deleting from one deletes from both. Just put your stuff into public_html, and ignore www.
wardend
08-27-2009, 06:33 AM
Thanks. For some reason the files in one of my folders disappeared last week. I'm looking for a reason why.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.