If you don’t have an index file in every directory the contents of the directories are open for viewing. This can be a serious security issue.
1. First log in to your Cpanel
2. Click "File Manager"
3. Choose the directory that the .htaccess file is in by clicking on the file icon
4. Select the.htaccess file
5. Click "Edit File" in the middle of the menu bar
6. Then just type the following into your .htaccess file in the public html directory.