当我使用:
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);
现在不起作用