title: Routes in Codeigniter - 404 Page Not Found
body: <p>Can someone tell me, where the issue is ??</p>
  
  <p>This is my controller</p>
  
  <pre><code>class Support extends CI_Controller {
      public function __construct()
      {
          parent::__construct();
          $this-&gt;load-&gt;model('support_model');
          $urlarray = array("index","delete");
          if(!in_array($this-&gt;uri-&gt;segment(2),$urlarray)){
              $this-&gt;viewticket($this-&gt;uri-&gt;segment(2));
          }
      }
  
      public function viewticket($id){
          if(!empty($id)){
              $this-&gt;load-&gt;view('templates/logged_header');       
              $this-&gt;load-&gt;view('support/view');
              $this-&gt;load-&gt;view('templates/footer');
          }
      }
  }
  </code></pre>
  
  <p>Here is my routes.php</p>
  
  <pre><code>$route['default_controller'] = "welcome";
  $route['benefits'] = 'welcome/benefits';
  $route['faqs'] = 'welcome/faqs';
  $route['distributors'] = 'welcome/distributors';
  $route['contact'] = 'welcome/contact';
  $route['purchase'] = 'welcome/purchase';
  
  //login routes
  $route['login'] = 'login/index';
  $route['logout'] = 'login/logout';
  
  $route['404_override'] = '';
  </code></pre>
  
  <p><code>localhost/ciproj/support/hello-world</code> gives me <code>404 Page Not Found</code> error</p>
  
  <p>If I use <code>exit;</code> after <code>$this-&gt;load-&gt;view('templates/footer');</code>, the page is showing me blank page.</p>
  
  <p>I don't have anything in routes related to support and every other method is working
  Is there anything that i'm missing in routes ??</p>
  
  <p>Thanks for the help.</p>