CodeIgniter Forums
Routing Question. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: Routing Question. (/thread-24102.html)



Routing Question. - El Forum - 10-30-2009

[eluser]Unknown[/eluser]
Actual Code :

$route['default_controller'] = 'blog';
$route['scaffolding_trigger'] = '';

In this case any request without a URI send to default controller.

But my question is...

I have a http like :

this http://localhost/codeigniter/one/page1.html
or this http://localhost/codeigniter/two/page1.html

How i do to send this two different URL to the same controller.

Thanks.


Routing Question. - El Forum - 10-30-2009

[eluser]NateL[/eluser]
You would need to use a wildcard or regular expression, as outlined here in the user guide.