私が使用するとき:
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 の結果は次のとおりです。
だから私はそのように .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);
今は機能しません