1. Is it a good practice to have the index.html file in every subfolder or is it intended to be only in the root folder?
Yes, because it prevents people from seeing what files are in your directories. You can prevent this with a `.htaccess` file containing `Options -Indexes`
2. Are there any disadvantages or problems that may occur when using the second, "index in every folder" method?
None that I can think of.
3. Which one of the two ways of structuring the website described above would you prefer?
I usually have an `index.html` or `index.php` file in the root, subfolders based on category (such as `forum` or `news` or `login` etc.) and then some sort of index inside each of those.
Is it a good practice to have the index.html file in every subfolder or is it intended to be only in the root folder?
Yes, because it prevents people from seeing what files are in your directories. You can prevent this with a
.htaccess
file containingOptions -Indexes
Are there any disadvantages or problems that may occur when using the second, "index in every folder" method?
None that I can think of.
Which one of the two ways of structuring the website described above would you prefer?
I usually have an
index.html
orindex.php
file in the root, subfolders based on category (such asforum
ornews
orlogin
etc.) and then some sort of index inside each of those.