CodeIgniter Forums
codeigniter routes - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: codeigniter routes (/showthread.php?tid=44465)



codeigniter routes - El Forum - 08-15-2011

[eluser]daka[/eluser]
0 down vote favorite


need next: I use codeigniter 2.02 I removes index.php with htaccess

I have controller post and with route

$route['(:any)'] = "post/index/$1";

And I get what I want: domain.com/14 in place of domain.com/post/14

BUT now I have next controllers that I want like: login, member etc.

But if I go to domain.com/login I'm redirected to domain.com ... so if someone can get me solution so I can go to login controller... with some regular expression with routes!

this is my routes:

$route['default_controller'] = "index";
$route['404_override'] = '';
$route['signup/(:any)'] = "signup/index/$1";
$route['(:any)'] = "post/index/$1";


tnx