www vs. public folder


InMotionFans
n/a Points
Asked:
2014-05-12 5:38 pm EST

Hits: 33
I have been told by someone optimizing our site that our files should be in the www and not the public folder. I didnt know this was possible? He claims it is like having multiple copies of the same page.

You must login before you can ask a follow up question.

You must login before you can submit an answer.

OTHER ANSWERS

0

JacobIMH
Staff
9,968 Points
2014-05-12 5:49 pm EST
Hello, and thank you for your question.

It actually doesn't matter what folder you place your files in, because as you might have noticed, they are duplicated into the other folder automatically.

The server isn't actually storing two copies of the same files, instead the www file is simply a symbolic link to the main /public_html folder. These can also be called a symlink, or a soft link.

The www symbolic link could be deleted and the target directory of /public_html would remain unaffected. However if you deleted the /public_html directory, when you went to try to access the www symbolic link, it would cease to function because the target it was linking to no longer existed.

Hope that helps clear things up. Please let us know if you had any further questions at all!

- Jacob

You must login before you can post a comment about this answer.

Like this Question?

Support Center Login


Social Media Login

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!