• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Possible to mix query strings with "clean" URLs?

#1
[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?

#2
[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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.