title: Codeigniter htaccess not working in ubuntu 16.04
body: <p><em>This application biuld in Codeigniter Version = 3.1.3. when build this application work it properly with this htaccess file but today when i run this application &amp; face this type of error.</em>  </p>
  
  <blockquote>
    <p>When run my codeigniter website, htaccess file can't rewrite my
    index.php url. so, requested URL was not found error shown. </p>
  </blockquote>
  
  <p><strong>properly working url</strong> => localhost/Magpie/index.php/Front_master/aboutus.html</p>
  
  <p><strong>Error url</strong> => localhost/Magpie/index.php/Front_master/aboutus.html</p>
  
  <hr>
  
  <p><strong>Here is my htaccess code:</strong></p>
  
  <pre><code>    &lt;IfModule mod_rewrite.c&gt;
        RewriteEngine on
        RewriteBase /Magpie/
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule ^(.*)$ index.php/$1 [L]
      &lt;/IfModule&gt;
  </code></pre>
  
  <p>Controller file: <strong>Front_master.php</strong></p>
  
  <pre><code>&lt;?php
  
      class Front_master extends CI_Controller {
  
        public $result = array();
        public function __construct() {
        parent::__construct();
  
        //load models
        $this-&gt;result["getContact"] = $this-&gt;GetInformation-&gt;getContact();
        $this-&gt;result["getLogo"] = $this-&gt;GetInformation-&gt;getLogo();
        $this-&gt;result["getSlide"] = $this-&gt;GetInformation-&gt;getSlide();
        $this-&gt;result["getServices"] = $this-&gt;GetInformation-&gt;getServices();
        $this-&gt;result["getContent"] = $this-&gt;GetInformation-&gt;getContent();
        $this-&gt;result["getPropertyListing"] = $this-&gt;GetInformation-&gt;getPropertyListing();
        $this-&gt;result["getBestDeal"] = $this-&gt;GetInformation-&gt;getBestDeal();
        $this-&gt;result["getTeam"] = $this-&gt;GetInformation-&gt;getTeam();
      }
  
      public function index() {
        $data = array();
  
        $data['title'] = 'Home Page';
        $data['header'] = $this-&gt;load-&gt;view('frontview/header', $this-&gt;result, TRUE);
        $data['slider'] = $this-&gt;load-&gt;view('frontview/slider', $this-&gt;result, TRUE);
        $data['dashboard'] = $this-&gt;load-&gt;view('frontview/dashboard', $this-&gt;result, TRUE);
        $data['footer'] = $this-&gt;load-&gt;view('frontview/footer', '', TRUE);
        $this-&gt;load-&gt;view('frontview/master', $data);
      }
  
      public function aboutus() {
        $data = array();
        $data['title'] = 'About Us';
        $data['header'] = $this-&gt;load-&gt;view('frontview/header', $this-&gt;result, TRUE);
        $data['dashboard'] = $this-&gt;load-&gt;view('frontview/about_us', $this-&gt;result, TRUE);
        $data['footer'] = $this-&gt;load-&gt;view('frontview/footer', $this-&gt;result, TRUE);
        $this-&gt;load-&gt;view('frontview/master', $data);
      }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Y99NL.png" rel="nofollow noreferrer">enter image description here</a></p>