Welcome Guest, Not a member yet? Register   Sign In
codeigniter routes
#1

[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




Theme © iAndrew 2016 - Forum software by © MyBB