title: CodeIgniter routes issues to access the frontend and backend folder
body: <p>I am using CodeIgniter. I have frontend and backend folder inside controllers and views. I tried server steps even check almost all the solution but still I am not able to access it my default controller</p>
  
  <p><a href="https://i.stack.imgur.com/frkdG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/frkdG.png" alt="enter image description here"></a></p>
  
  <p><strong>routes.php</strong> </p>
  
  <pre><code>$route['default_controller'] = 'frontend/User_control';
  $route['404_override'] = '';
  $route['translate_uri_dashes'] = FALSE;
  
  /*backend*********************************/
    $config['backend'] = 'backend/Access_control';  
  </code></pre>
  
  <p>1) My issue is When I am accessing the Url <a href="http://localhost/example_ci_row/" rel="nofollow noreferrer">http://localhost/example_ci_row/</a>  </p>
  
  <p>I am getting 404 Page not found</p>
  
  <p><a href="https://i.stack.imgur.com/LK1E2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LK1E2.png" alt="enter image description here"></a></p>
  
  <p>2) How to access the backend URL I tried <a href="http://localhost/icube_row/admin" rel="nofollow noreferrer">http://localhost/icube_row/admin</a>
   but I am getting the error</p>
  
  <p><a href="https://i.stack.imgur.com/ZIJrL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZIJrL.png" alt="enter image description here"></a></p>
  
  <p><strong>frontend User_control</strong></p>
  
  <pre><code>&lt;?php
  defined('BASEPATH') OR exit('No direct script access allowed');
  class User_control extends CI_Controller {
      public $current_date;
      function __construct()
      {
          parent::__construct();
          $this-&gt;load-&gt;library('form_validation');
          $this-&gt;load-&gt;helper('form');
      }
      public function index(){
          $this-&gt;load-&gt;view('frontend/login');
      }
      }
  ?&gt;
  </code></pre>
  
  <p><strong>Backend Access control</strong></p>
  
  <pre><code>&lt;?php
  defined('BASEPATH') OR exit('No direct script access allowed');
  
  class Access_control extends CI_Controller {
      function __construct()
      {
          parent::__construct();
          $this-&gt;load-&gt;library('form_validation');
          $this-&gt;load-&gt;helper('form');           
      }
  
      public function index(){
          $this-&gt;load-&gt;view('backend/login');
      }
  
      }
  
  ?&gt;
  </code></pre>
  
  <p><strong>Edited</strong></p>
  
  <p>It's working when I use below steps. I added the Test.php file in the controller and change the routes then I am getting the login page.</p>
  
  <p><strong>Test.php</strong></p>
  
  <pre><code>&lt;?php
  defined('BASEPATH') OR exit('No direct script access allowed');
  class Test extends CI_Controller {
      public $current_date;
      function __construct()
      {
          parent::__construct();
          $this-&gt;load-&gt;library('form_validation');
          $this-&gt;load-&gt;helper('form');
      }
      public function index(){
          $this-&gt;load-&gt;view('frontend/login');
      }
      }
  ?&gt;
  </code></pre>
  
  <p><strong>routes.php</strong></p>
  
  <pre><code>$route['default_controller'] = 'Test';
  </code></pre>