![]() |
Problem with query strings - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Problem with query strings (/showthread.php?tid=37465) |
Problem with query strings - El Forum - 01-11-2011 [eluser]x3cu73[/eluser] Hi, I'm having problems using query strings http://somedomain.com/controller_name/ works fine but http://somedomain.com/controller_name?a=1&b=2 give 404 error, page not found It works when I use http://somedomain.com/index.php/controller_name?a=1&b=2 query strings are enabled in config.php Problem with query strings - El Forum - 01-11-2011 [eluser]Atharva[/eluser] You have to use .htaccess to remove index.php from url. Have you done that? Problem with query strings - El Forum - 01-11-2011 [eluser]Cristian Gilè[/eluser] Hi x3cu73, Code: $config['uri_protocol'] = 'PATH_INFO'; Remember that, unless you are using .htaccess to remove index.php from url, this file is mandatory. Cristian Gilè |