【发布时间】:2011-05-26 05:32:22
【问题描述】:
我最近将 CI 从 1.7 升级到了 2.0。在我开始收到 CI 之后
不允许的关键字符
错误。
然后我允许接受所有字符,看看错误是否会消失。
$config['permitted_uri_chars'] = '';
然而,这并没有改变什么
我也启用了查询字符串
$config['enable_query_strings'] = TRUE;
我只是不知道为什么当我允许所有字符都被接受时会出现不允许的字符错误。
这是一个 url 示例,我会在其中得到不允许的键字符错误:
http://localhost/myapp/index.php??c=user&m=login
但是,如果我要删除其中一个“?”它有效
http://localhost/myapp/index.php?c=user&m=login
我确实有一个 htaccess 文件,其中包含:
RewriteEngine on
RewriteRule (.*)/index.php $1/ [L]
有什么帮助吗?
【问题讨论】:
标签: php codeigniter