且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从codeigniter中的查询字符串中提取获取变量?

更新时间:2023-02-18 20:03:23

这样做
更改我的配置变量

Got it to work by doing this Changing my config variables

$config['enable_query_strings'] = TRUE;  
$config['uri_protocol'] = "PATH_INFO";

并将我的htaccess更改为

And changing my htaccess to this

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php/$1 [L]

此处找到帮助
如何使CodeIgniter接受查询字符串网址?