Unable to access assets folder in Codeigniter

孤街醉人 提交于 2020-01-06 09:57:30

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!