CodeIgniter Forums
Route segment starting with ? - 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: Route segment starting with ? (/showthread.php?tid=59438)



Route segment starting with ? - El Forum - 10-05-2013

[eluser]Dimitar[/eluser]
Hey guys,

I need help regarding following url:

Code:
http://www.domain.com/segment/?param=val&param=val&param=val

I'm not able to change the url, but need a way to route it to "any" controller and function. Tried with:

Code:
$route['segment/(:any)'] = '';

It does not work though. Any ideas?


Route segment starting with ? - El Forum - 10-11-2013

[eluser]Mangetsu[/eluser]
Hmm, idea behind routing is to know where you want to go.. my bet would be to create one landing controller and then parse params and decide where do you want to go next