-2

I'm trying to publish a website I created but can't figure out where in the hosting server I should put my website files. The server folders looks like this:

enter image description here

I only added index.html and .htaccess. Even though index.html is present in the root directory, when I try to connect to my website it shows a server not found error. I tried to move the homepage to all the folders, but I still have the same issue. My .htaccess looks like this: DirectoryIndex index.html. Changing it to DirectoryIndex public_html/index.html doesn't remove the problem. What am I doing wrong and where should I put my website files?

5
  • My guess would be the www folder. Commented Jan 13, 2015 at 12:48
  • 1
    "when I try to connect to my website it shows a server not found error" - It looks you have more problems than just folder placement. Commented Jan 13, 2015 at 12:49
  • @ThatBrazilianGuy What other problem does it seems I have?
    – moray95
    Commented Jan 13, 2015 at 12:50
  • @DannySchoemann: Works as well, it is a symbolic link to the public_html directory. Commented Jan 13, 2015 at 13:15
  • @ThatBrazilianGuy Apparently it was a DNS problem, the hosting provider solved the problem.
    – moray95
    Commented Jan 13, 2015 at 13:18

1 Answer 1

1

Public files go into the public folders; for your homepage, that is public_html.

2
  • I tried to put it into the public_html folder but nothing changes.
    – moray95
    Commented Jan 13, 2015 at 12:50
  • @moray95: Change the .htaccess back to DirectoryIndex index.html Commented Jan 13, 2015 at 13:14

Not the answer you're looking for? Browse other questions tagged .