问题
My directory structure is as follows:
-application
-system
-assets
--images
--downloads
--css
index.php
I created assets as suggested on stackoverflow,I wanted to restrict access to downloads so placed .htaccess file in assets folder with the following directive
Deny from all
now its protected but as assets has css files and those are also not accessible too.
回答1:
Try to put the htaccess file to downloads file
来源:https://stackoverflow.com/questions/18316445/unable-to-access-assets-folder-in-codeigniter