【发布时间】:2012-02-24 22:57:51
【问题描述】:
因此位于此网址(例如):http://localhost/codeigniter-app/en/results?search_query=data
uri_string 没有返回所需的路径
["uri_string"]=>
string(10) "en/results"
和预期的:
["uri_string"]=>
string(10) "en/results?search_query=data"
我的一些config.php
$config['uri_protocol'] = 'AUTO';
$config['url_suffix'] = '';
$config['allow_get_array'] = TRUE;
$config['enable_query_strings'] = false;
有什么想法吗?
编辑:
使用http://codeigniter.com/wiki/CodeIgniter_2.1_internationalization_i18n库时发现问题
【问题讨论】:
-
您能说一下您期望的结果吗?
-
抱歉,我认为这很明显...检查编辑
-
尝试将 [L,QSA] 添加到 htaccess 中包含 index.php 的行
-
@BenSwinburne 到底是哪一行? gist.github.com/d11be61ebca9bc49daab这个我试过
RewriteRule ^(.*)$ index.php?/$1但是没有效果 -
您的一个重写规则后面会有一个 [L]。添加 QSA
标签: php codeigniter uri pathinfo