client denied by server configuration
本帖最后由 疯狂的石头 于 2013-12-19 20:37 编辑去除index.php 配置好.htaccess 没有起作用
在apache错误日志里看到 这么个错误
client denied by server configuration: C:/myweb/apache/htdocs/jpldragon/.htaccess
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /jpldragon/index.php/$1
什么原因
已解决原来是这里设置错了
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
这是 apache 的问题吧,和 CI 无关。 Hex 发表于 2013-12-20 12:11 static/image/common/back.gif
这是 apache 的问题吧,和 CI 无关。
已经解决 下面的没设置好
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
Hex 发表于 2013-12-20 12:11 static/image/common/back.gif
这是 apache 的问题吧,和 CI 无关。
顺便问句 在view层怎么写相对路径引入CSS文件 和显示图片啊
疯狂的石头 发表于 2013-12-20 16:14 static/image/common/back.gif
顺便问句 在view层怎么写相对路径引入CSS文件 和显示图片啊
不要用相对路径,用 base_url() 函数,具体参考下手册。
Hex 发表于 2013-12-20 17:46 static/image/common/back.gif
不要用相对路径,用 base_url() 函数,具体参考下手册。
与smarty绑定了现在每次在构造函数里每次assign下;;;
页:
[1]