Possible to mix query strings with "clean" URLs? - 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: Possible to mix query strings with "clean" URLs? (/showthread.php?tid=25945) |
Possible to mix query strings with "clean" URLs? - El Forum - 01-01-2010 [eluser]stevefink[/eluser] Hi all, I'm curious if it's currently possible to mix URLs with query strings without converting my entire URL schema to query string only. My problem is rather straight forward. I need to be able to support URLs of this nature: http://example.com/controller?foo=bar Is there a way to accomplish this without serious hacking of CI internals? Possible to mix query strings with "clean" URLs? - El Forum - 01-01-2010 [eluser]BrianDHall[/eluser] Yah, I believe there is info in the wiki. The really short version - in config.php turn on query_strings (set to TRUE), then set your URI_PROTOCOL to 'whatever works'. You should then be able to mix and match standard query strings with the unique way CI likes to handle things. Some people have issues with '/' on the end (either needing it or needing to not have it), but I believe they prefer to fix it with htaccess - though I haven't had any such issue so far. |