疯狂的石头 发表于 2013-12-19 17:17:52

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
什么原因

疯狂的石头 发表于 2013-12-20 10:06:26

已解决原来是这里设置错了
# 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:05

这是 apache 的问题吧,和 CI 无关。

疯狂的石头 发表于 2013-12-20 16:00:23

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

疯狂的石头 发表于 2013-12-20 16:14:56

Hex 发表于 2013-12-20 12:11 static/image/common/back.gif
这是 apache 的问题吧,和 CI 无关。
顺便问句 在view层怎么写相对路径引入CSS文件 和显示图片啊

Hex 发表于 2013-12-20 17:46:46

疯狂的石头 发表于 2013-12-20 16:14 static/image/common/back.gif
顺便问句 在view层怎么写相对路径引入CSS文件 和显示图片啊

不要用相对路径,用 base_url() 函数,具体参考下手册。

疯狂的石头 发表于 2013-12-20 18:11:29

Hex 发表于 2013-12-20 17:46 static/image/common/back.gif
不要用相对路径,用 base_url() 函数,具体参考下手册。

与smarty绑定了现在每次在构造函数里每次assign下;;;
页: [1]
查看完整版本: client denied by server configuration