uploaded my site and the homepage just shows a list of files

First time hosting a hand-coded site. Visiting the domain shows a folder listing instead of the homepage. My main page is called home.html. Does it have to be named index.html, or can the server be told which file to load first?
2

Leave A Reply

Log in to post an answer.

2 Answers

sophia.dasy Nov 02, 2026
ajay_21
If index.html is definitely in public_html, named right, and you still see the listing, try a private window first. The listing gets cached like any other page, so you might just be looking at an old copy. If it's still there, check you're looking at the right folder. On some hosts the domain points at a different directory than public_html (common with addon domains), so the file is fine but in the wrong place.
rumpa_uk Oct 13, 2026
ajay_21
The server can't find an index file in that folder, so it lists everything instead. Check the homepage is named exactly index.html (or index.php), all lowercase, since Linux hosting is case sensitive and Index.html won't count. Also check it's in the web root (public_html on most hosts) and not inside a subfolder that came out of your zip. Once that's working, add Options -Indexes to your .htaccess so nobody can browse your folders if it ever happens again.