[SOLVED] controller in subfolder and index.php |
[eluser]bibos[/eluser]
Hi, i'm in CodeIgniter2.1.0. I have a controller subfolder like : +controllers |-+admin |->admin.php next i folow the steps to remove the 'index.php' from URI but when i try to reach : http://localhost/admin/admin/index a '404 not found' error is shown! this is my htaccess : Code: RewriteEngine On can some one help please? THKS
[eluser]InsiteFX[/eluser]
.application/config/routes.php Code: // Admin Controller
[eluser]Bhashkar Yadav[/eluser]
also, make a update into config file (located at /application/config/) with Code: $config['index_page'] = '';
[eluser]bibos[/eluser]
HI, Same problem with your solution, i still have '404' error!! SO i have this situation : in 'located at /application/config/' i have : Code: ... in 'application/config/routes.php' i have : Code: ... my htaccess stil the same as above : Code: RewriteEngine On still have : Code: The requested URL /admin/admin/login was not found on this server. but when i use this uri: Code: http://farkess.farkess.com/index.php/admin/admin/login it's work!!!!! is this a bug? or i do some thing wrong? THKS
[eluser]bibos[/eluser]
SOLVED!! I do a mistakes i forgot the '.' dot of htaccess file ! Sorry
[eluser]InsiteFX[/eluser]
No problem it can happen to anyone, the thing is to remember and correct our mistakes so that we do not make them again.
[eluser]Mauricio de Abreu Antunes[/eluser]
[quote author="InsiteFX" date="1329300760"]No problem it can happen to anyone, the thing is to remember and correct our mistakes so that we do not make them again. [/quote] Sure! I would use another name for my controller. admin/home My app shows this page when you are logged in: portal/home home.php is my controller into portal folder. |
Welcome Guest, Not a member yet? Register Sign In |