Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 如何在Codeigniter中允许url中使用方括号_Php_Codeigniter_Url - Fatal编程技术网

Php 如何在Codeigniter中允许url中使用方括号

Php 如何在Codeigniter中允许url中使用方括号,php,codeigniter,url,Php,Codeigniter,Url,我有一个网址: "http://example.com/some-var-[2009]-to-[2014]" 当我击中相同的目标时,我得到: 我如何修复相同的问题? 我想允许在我的url中使用方括号[2009]&[2014]。将此代码放在允许声明的配置文件中 ]a-z 0-9~%.:[_\-,;&()@! 酷。所以他们根本不被允许。(Y) 您是否尝试更改config.php中的$config['allowed\u uri\u chars']可能存在重复?

我有一个网址:

"http://example.com/some-var-[2009]-to-[2014]"
当我击中相同的目标时,我得到:

我如何修复相同的问题?
我想允许在我的url中使用方括号[2009]&[2014]。

将此代码放在允许声明的配置文件中

]a-z 0-9~%.:[_\-,;&()@!

酷。所以他们根本不被允许。(Y) 您是否尝试更改config.php中的$config['allowed\u uri\u chars']可能存在重复?