CodeIgniter Forums
Rewrite GET paramethers in URL - 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: Rewrite GET paramethers in URL (/showthread.php?tid=52417)



Rewrite GET paramethers in URL - El Forum - 06-09-2012

[eluser]Unknown[/eluser]
Hi,

In default configuration, the GET parameters in the URL look like that:

Code:
http://example.com/example/page/1/cat/2/dunno/3/

representing

Code:
page=1 cat=2 dunno=3

I want to use them in a different way :

Code:
http://example.com/example/page:1/cat:2/dunno:3/

I created the routing rule so that the parameters are sent to the correct function in controller.

My question is:

How to change the code (and which file do I have to alter) so that the URL after sending the form looks the way I pointed above?