final 发表于 2009-12-31 10:22:53

windows $config['uri_protocol']= "REQUEST_URI"出现404错误

windows下使用$config['uri_protocol']= "REQUEST_URI"出现404错误
服务器环境 Apache/2.2.11 (Win32) DAV/2 PHP/5.2.9

如果需要使用$config['uri_protocol']= "REQUEST_URI" 服务器上需要什么配置吗?
谢谢

Hex 发表于 2009-12-31 10:49:24

为什么要使用 REQUEST_URI
你确定你的 $_SERVER 里有这个参数吗

final 发表于 2009-12-31 11:14:29

Array
(
    => SzwS0cCoATwAAA@gLIIAAAD4
    => ***
    => Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.2b5) Gecko/20091204 Firefox/3.6b5
    => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    => zh-cn,zh;q=0.5
    => gzip,deflate
    => GB2312,utf-8;q=0.7,*;q=0.7
    => 115
    => keep-alive
    =>
    => max-age=0
    => C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Universal Extractor\;C:\Program Files\Universal Extractor\bin\;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs\
    => C:\WINDOWS
    => C:\WINDOWS\system32\cmd.exe
    => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    => C:\WINDOWS
    => <address>Apache/2.2.11 (Win32) DAV/2 PHP/5.2.9 Server at ***Port 80</address>

    => Apache/2.2.11 (Win32) DAV/2 PHP/5.2.9
    => ***
    => ***
    => 80
    => ***
    => ***
    => admin@localhost
    => ***
    => 4463
    => CGI/1.1
    => HTTP/1.1
    => GET
    =>
    => /pc/
    => /pc/index.php
    => /pc/index.php
    => 1262228177
    => Array
      (
      )

    => 0
)

final 发表于 2009-12-31 11:15:11

上面是服务器$_SERVER输出的变量,确实有REQUEST_URI

Hex 发表于 2009-12-31 12:21:46

REQUEST_URI 的结果不是 CI 需要的,你应该看看 CI 的源码,搜索 CI 源码 uri_protocol 会有你需要的结果。

final 发表于 2009-12-31 13:48:37

修改成REQUEST_URI 后,在linux apache下面可以正常运行的。换到windows下面就不行了

visvoy 发表于 2009-12-31 14:38:44

如无特殊需要,推荐auto

final 发表于 2010-1-6 14:10:18

就是因为有特殊需求才改成的REQUEST_URI

visvoy 发表于 2010-1-6 14:28:33

那用linux就好了

Hex 发表于 2010-1-6 14:53:14

和 apache 配置有关,使用 xampp 里的配置在我这里是很正常的,楼主可以参考一下。
页: [1] 2
查看完整版本: windows $config['uri_protocol']= "REQUEST_URI"出现404错误