php - CodeIgniter sub-sub-folder controller works localhost but not on server -


i'm having troubles structure on server environment:

controllers         -> controller_home.php         -> folder 1/       -> controller_1.php       -> controller_2.php       -> folder 2/         -> controller_3.php 

controller.home.php works fine

controller_1.php works fine

controller_2.php works fine

controller_3.php doesn't work - appears custom 404 page error

i'm using codeigniter 3.0 version, , had trouble required first letter of each controllers uppercase. rename controllers , models files use first letter uppercase.

i thought problem i'm having due folders inside controllers/ not uppercase, ain't because of that.

i repeat the structure works on local environment.

edit: requested, .htaccess file:

options -indexes options +followsymlinks  # set default file indexes directoryindex index.php  <ifmodule mod_rewrite.c>      # activate url rewriting     rewriteengine on      # not rewrite links documentation, assets , public files     rewritecond $1 !^(index\.php|public|robots\.txt)      # not rewrite php files in document root, robots.txt or maintenance page     rewritecond $1 !^([^\..]+\.php|robots\.txt)      # rewrite else     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.      errordocument 404 index.php  </ifmodule>  <ifmodule mod_expires.c>      expiresactive on      expiresbytype image/jpg "access plus 1 month"     expiresbytype image/jpeg "access plus 1 month"     expiresbytype image/gif "access plus 1 month"     expiresbytype image/png "access plus 1 month"     expiresbytype image/bmp "access plus 1 month"  </ifmodule> 

my controller_3.php (it's customers controller) code:

<?php if (!defined('basepath')) exit('no direct script access allowed');  class customers extends ci_controller {     public function __construct()     {         parent::__construct();       }      public function index()     {            $this->load->view('backend/customers/index');     } } ?> 

edit 2: complete (so far) route file:

$route['translate_uri_dashes']                  = true; $route['default_controller']                    = 'home/login'; $route['404_override']                          = 'home/error';  $route['app/entities/index']                    = 'backend/entities/index'; $route['app/suppliers/index']                   = 'backend/suppliers/index'; $route['app/administration/customers/index']    = 'backend/administration/customers/index'; 

after tremendous amount of debug , of fellow @codegodie giving me tips, end realizing problem while transfering system/ folder ftp server.

i downloaded again codeigniter 3.0 framework, , copy paste system/ folder , started working instantly.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -