Actually i have a website www.domain.com
when i tried to inspect element and try to access www.domain.com/css/ then it showed all the files in the directory
Structure
- /css/
- /images/
- /include/
- /js/
- index.html
- contact.html
- sitemap.xml
- style.css
- robot.txt
- .htaccess
i want css,images,include,js folder to be protected means if anyone try to access www.domain.com/images/ then he should be redirected to www.domain.com/index.html rest index.html,contact.html,sitemap,robot.txt should be publicly accessible and www.domain.com/images/abcd.jpg can be publicly accessible but www.domain.com/images/ should not be publicly accessible.
can anyone tell me how to do that?