Description
As it stands, Magento 2 currently ships with two index.php bootstrap files. One in the root folder
index.php
and one in the pub
folder
pub/index.php
This situation creates some uncertainty for end users of the system as to which folder should be exposed to their web-server. The includes of a pub
folder will indicated to some developers that this should be the public webroot. However, developers not familiar with the concept will see index.php
in the root folder and assume this file should be exposed.
With commenting on which approach is better, a single approach should be chosen for the file to reduce confusion in the system. A single location for the "index bootstrap" files should be chosen, and stuck to. (assuming, of course, there's is not an opaque-but-important reason for the current state of affairs)