`enable_query_strings`工作不正常
-
13-09-2019 - |
题
我试图用笨,和Xdebug。当我在以下URL输入:
http://localhost/redux/index.php
xdbug效果很好。当我去到以下网址:
http://localhost/redux/index.php?
,收到以下404错误消息:
XDEBUG_SESSION_START=ECLIPSE_DBGP&KEY=124466969367132
的Eclipse lanches火狐第二,错误的URL,然后我必须改变它。我使用enable_query_strings = TRUE
,但我仍然得到错误。我该如何解决这个问题?
解决方案
要得到这个完美的工作,使用:
$config['uri_protocol'] = "PATH_INFO";
$config['enable_query_strings'] = TRUE;
其他提示
请确保您有两个
$配置[ 'uri_protocol'] = “QUERY_STRING”;或$配置[ 'uri_protocol'] = “REQUEST_URI”;
和
$配置[ 'enable_query_strings'] = TRUE;
如果不尝试改变你的URI个字符这个
$配置[ 'permitted_uri_chars'] = 'A-Z 0-9〜%:?_ \ - ';
不隶属于 StackOverflow