【发布时间】:2011-07-10 18:41:16
【问题描述】:
当我使用时:
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);
现在不行
【问题讨论】:
标签: apache .htaccess codeigniter get pathinfo