views:

582

answers:

2

I'm trying to use codeigniter and xdebug. When I go to http://localhost/redux/index.php, it works. When I go to http://localhost/redux/index.php?XDEBUG_SESSION_START=ECLIPSE_DBGP&KEY=124466969367132, I get a 404 error. Eclipse lanches Firefox with the second URL, the wrong URL, then I have to change it. I'm using enable_query_strings = TRUE, but I'm still getting the error. How to solve this problem?

+2  A: 

Make sure that you have both

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

and

$config['enable_query_strings'] = TRUE;

If that doesn't work try changing your URI Chars to this

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-?';

wiebersk
hi wiebrsk, the one that worked was "PATH_INFO", but thanks for trying anyway
Delirium tremens
+2  A: 

To get this working perfectly, use:

$config['uri_protocol'] = "PATH_INFO";
$config['enable_query_strings'] = TRUE;
Phil Sturgeon