Possible to mix query strings with "clean" URLs? |
[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?
[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. |
Welcome Guest, Not a member yet? Register Sign In |