php - Code Igniter default controller loading 404 -
i seem having problem hooking default controller known class. hooking routes db merges routes array output , looks this:
$route['default_controller'] = "login"; $route['404_override'] = ''; if(!empty($db_routes)) $route = array_merge($route,$db_routes);
the out set follows:
array ( [default_controller] => login [404_override] => [login] => login [login/submit] => login/submit [login/submit/testing] => login/testing [home] => home [home/json/] => home/json )
i can navigate class if place in routes array this:
$route['login'] = "login";
so know it's accessible default controller doesn't seem triggering.
my htaccess looks this:
<ifmodule mod_rewrite.c> rewriteengine on rewritebase / #removes access scheme folder users. #additionally allow create system.php controller, #previously not have been possible. #'system' can replaced if have renamed scheme folder. rewritecond %{request_uri} ^system.* rewriterule ^(.*)$ /index.php?/$1 [l] #when application folder isn't in scheme folder #this snippet prevents user access application folder #submitted by: fabdrol #rename 'application' applications folder name. rewritecond %{request_uri} ^application.* rewriterule ^(.*)$ /index.php?/$1 [l] #checks see if user attempting access valid file, #such image or css document, if isn't true sends #request index.php rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ index.php?/$1 [l] </ifmodule> <ifmodule !mod_rewrite.c> # if don't have mod_rewrite installed, 404's # can sent index.php, , works normal. # submitted by: elliothaughin errordocument 404 /index.php </ifmodule>
any help appreciated.
php codeigniter
No comments:
Post a Comment