do not remove subfolder when redirecting (cherry picked from commit 8957b0d)
do not allow to access config.inc.php in subfolder (cherry picked from commit 217f4aa)
redirect to index.php when requested for config.inc.php (cherry picked from commit b3d4ff1)
lines align (cherry picked from commit c2f4859)