I have installed wordpress blog site but when i open my plugins and themes folder it shows the whole directory structure. For example when i open ( www.myblog.com/wp-content/plugins ) it shows the whole directory structure of plugins folder, it means everyone can see my plugin folder, plz tell me how to forbid users to see plugins or themes directory ? I have also tried to give chmod plugins folder with different permissions and it works and director didnt show its sturucture but the plugins in the plugins folder also didnt work, so plz tell me how to forbid the plugins and themes directories that users cannot see its structure but plugins work for site and users ?
I have already did this but not just empty index but with redirector to put anyone on site main page. I think we need to use chmod to forbid it instead of putting index.