CodeIgniter Forums
HMVC and URI Language Identifier help - 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: HMVC and URI Language Identifier help (/showthread.php?tid=38994)



HMVC and URI Language Identifier help - El Forum - 02-25-2011

[eluser]Unknown[/eluser]
i am using two libraries, both by wiredesignz

HMVC: http://codeigniter.com/wiki/Modular_Extensions_-_HMVC

URI Language Identifier: http://codeigniter.com/wiki/URI_Language_Identifier

i have my admin controllers in a folder named admin and rest in a folder named public. but when i am trying to access url by typing

http://localhost/ci_2/admin , it just redirects to http://localhost/ci_2/en/admin
http://localhost/ci_2/, it just redirects to http://localhost/ci_2/en/public

and i am error message "The page you requested was not found."

I am guessing that my router config is not correct. Here are all my variables in application/router.php

$route['default_controller'] = "welcome";
$route['404_override'] = '';
$route['(\w{2})/(.*)'] = '$2';
$route['(\w{2})'] = $route['default_controller'];
$route['admin'] ='admin/login';
$route['^.{2}$/public']='public/welcome';

Also is it possible that i can set different default languages for admin and public folders?


Thanks