Php CodeIgniter中允许的\u uri\u字符出现问题

Php CodeIgniter中允许的\u uri\u字符出现问题,php,codeigniter,url,Php,Codeigniter,Url,我面临着CodeIgniter中允许的字符的问题。下面是我的配置: $config['allowed_uri_chars']='a-z 0-9~%:-()@!' 根据我的配置,应允许使用特殊符号。它适用于符号,但当我将符号组合使用时,它不起作用 情景: http://localhost/ci/test/index/page(新).html 当我的URL出现上述错误时: An Error Was Encountered The URI you submitted has disallowed c

我面临着CodeIgniter中允许的字符的问题。下面是我的配置:

$config['allowed_uri_chars']='a-z 0-9~%:-()@!'

根据我的配置,应允许使用特殊符号。它适用于符号,但当我将符号组合使用时,它不起作用

情景:

http://localhost/ci/test/index/page(新).html

当我的URL出现上述错误时:

An Error Was Encountered

The URI you submitted has disallowed characters.
但下面的方法很好

http://localhost/ci/test/index/page(new.html

http://localhost/ci/test/index/pagenew).html

我如何解决这个问题?我不希望使用.htaccess解决此问题

@TomPHP请在
config.php
文件中输入以下字符

$config['allowed_uri_chars']='a-z 0-9~%:\-()@


您忘记在允许出现uri问题的字符中添加
\

@TomPHP请在
config.php
文件中添加以下字符

$config['allowed_uri_chars']='a-z 0-9~%:\-()@


您忘记在允许出现uri问题的字符中添加
\

@TomPHP请在
config.php
文件中添加以下字符

$config['allowed_uri_chars']='a-z 0-9~%:\-()@


您忘记在允许出现uri问题的字符中添加
\

@TomPHP请在
config.php
文件中添加以下字符

$config['allowed_uri_chars']='a-z 0-9~%:\-()@


您忘记在允许出现uri问题的字符中添加
\

尝试添加此项。对我有用

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-()@!';

尝试添加这个。对我有用

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-()@!';

尝试添加这个。对我有用

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-()@!';

尝试添加这个。对我有用

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-()@!';