无法访问的资产文件夹中的codeigniter [英] Unable to access assets folder in Codeigniter

查看:139
本文介绍了无法访问的资产文件夹中的codeigniter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的目录结构如下:

-application
   - 系统
  -assets
  --images
  --downloads
   --css
  的index.php

-application
-system
-assets
--images
--downloads
--css
index.php

我在资产的建议在计算器,我想限制访问下载所以放在.htaccess文件中的资产文件夹下面的指令

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

所有拒绝

现在它的保护,但作为资产 CSS 文件,这些也不能访问了。

now its protected but as assets has css files and those are also not accessible too.

推荐答案

尝试把htaccess文件下载文件

Try to put the htaccess file to downloads file

这篇关于无法访问的资产文件夹中的codeigniter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆