title: routes in codeigniter from a subdirectory
body: <p>Im having trouble trying to make routes work on the production system(nginx). It works on localhost which is running apache.</p>
  
  <p>File structure</p>
  
  <pre><code>/var/www/example.com
     --application
     --system
  adm
     --application
     --system
     --controller
         --user
         --example
     --model
          --users_model
      --views
          --admin/
                --login
                --signup_form
          --example
  </code></pre>
  
  <p>I keep getting 404 error when trying to access the controller from adm folder.
  My routes</p>
  
  <pre><code>$route['default_controller'] = 'user';
  $route['404_override'] = '';
  
  /*admin*/
  $route['admin'] = 'user/index';
  $route['admin/signup'] = 'user/signup';
  $route['admin/create_member'] = 'user/create_member';
  $route['admin/login'] = 'user/index';
  $route['admin/logout'] = 'user/logout';
  $route['admin/login/validate_credentials'] = 'user/validate_credentials';
  </code></pre>
  
  <p>user controller view is displayed just the static content and everything else gives 404.</p>
  
  <p>/var/www/example.com/adm/application/config/config.php</p>
  
  <pre><code>base_url = http://example.com/adm
  uri_protocol = AUTO
  </code></pre>
  
  <p>Any help would be greatly appreciated, TIA.</p>