CodeIgniter Forums
[Closed] Codeigniter Will Not Load Default Route - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: [Closed] Codeigniter Will Not Load Default Route (/showthread.php?tid=60527)

Pages: 1 2


[Closed] Codeigniter Will Not Load Default Route - El Forum - 04-17-2014

[eluser]riwakawd[/eluser]
[quote author="Tpojka" date="1397730156"]Check this great explained article.
You can see that router.php is called before application/core classes. Therefore default CodeIgniter installation still don't use MY_Router.php during initializing default route. I said that in post before.
[/quote]

Thanks. I no codeigniter default controller. Can only work $route['default_controller'] = "folder/controller";

It is annoying that can not put one more folder there. Can for other routes but not default one. Not good unhappy.

I have to get my developer to maybe see if he can create or modify something that can make it happen.

Thanks for help any way.


[Closed] Codeigniter Will Not Load Default Route - El Forum - 04-17-2014

[eluser]Tpojka[/eluser]
You can try to make redirectional controller to be sure that core controller shall invoke.

application/config/route.php
Code:
$route['default_controller'] = "redirect_controller";

and in application/controllers/redirect_controller.php

Code:
<?php if ( !defined('BASEPATH')) exit('No direct script access allowed!');

class Redirect_controller extends CI_Controller
{

public function __construct()
{
  parent::__construct();

                redirect('admin/admin_login/administrator', 'refresh');
                exit();
}
}

Also you can make some htaccess approach with redirection.

Disclaimer: not tested.