3

What's the difference between the www & public_html folder on the same server on my shared linux hosting. I've seen data is same on both of these folders. Is one of them just a redirect or is the data getting replicated. What is the purpose of 2 folders or even a redirect folder?

Thanks in advance! :)

DMin
  • 398
  • 2
  • 11

2 Answers2

5

The primary difference would be a preference between naming conventions and how your hosting service configured it. I have typically used public_html for user directories and often www for system-wide but that's more a personal convention.

In all likelihood, there is no difference but we can't speak for an arbitrary configuration.

Warner
  • 23,756
  • 2
  • 59
  • 69
1

Usually the www folder is simply a symbolic link of public_html.

yossale
  • 115
  • 6
djs596
  • 64
  • 2