my whole sensitive config like db connection params is in confi.ini file. Maybe someone has already written .htaccess to prevent ini files from reading?
Ideally you would not have the configuration files in the public web directory, it should be outside it.
Your entire application (typically 'app' dir) should be outside the public directory.
The bootstrap index.php file, and all static resources like CSS, JS, images, etc should be the only files in the public directory.