当我使用:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|favicon\.ico|robots\.txt|class|style|js)
RewriteRule ^(.*)$ /index.php/$1 [L]
在.htaccess和:
$config['uri_protocol'] = "PATH_INFO";
在config.php 结果是: 我的Windows服务器说:一切正常,我的LINUX服务器说没有指定输入文件
所以我改变.htaccess的方式:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|favicon\.ico|robots\.txt|class|style|js)
RewriteRule ^(.*)$ /index.php?/$1 [L]
,并在config.php:
$config['uri_protocol'] = "QUERY_STRING";
比: 一切正常但不_GET $!我怎样才能使用$ _GET这样的设置?简单:
parse_str($_SERVER['QUERY_STRING'], $_GET);
没有你可能使用FastCGI PHP,这意味着你应该看看CI的用户指南故障排除现在的工作
是的,我不能将cgi.fix_pathinfo设置为0;可能会引发问题。设置$ config ['index_page'] =“index.php?”没有任何区别;没有这一切的一切工作 - 问题是 - 如何使用/实现$ _GET现在? – Erroid 2011-03-08 12:49:25