enable_query_strings does not work properly

I am trying to use CodeIgniter and xdebug. When I type the following url:

http://localhost/redux/index.php 

xdbug works well. When I go to the following URL:

 http://localhost/redux/index.php? 

I get the following 404 error message:

 XDEBUG_SESSION_START=ECLIPSE_DBGP&KEY=124466969367132 

Eclipse translates Firefox with a second, wrong URL, and then I have to change it. I am using enable_query_strings = TRUE , but I am still getting an error. How to solve this problem?

+4
xdebug codeigniter
source share
2 answers

To do this perfectly, use:

 $config['uri_protocol'] = "PATH_INFO"; $config['enable_query_strings'] = TRUE; 
+6
source share

Make sure you have both

$ config ['uri_protocol'] = "QUERY_STRING"; or $ config ['uri_protocol'] = "REQUEST_URI";

and

$ config ['enable_query_strings'] = TRUE;

If this does not work, try changing your URI characters to this

$ config ['allowed_uri_chars'] = 'az 0-9 ~% .: _ \ -?';

+2
source share

All Articles