title: How to remove index.php in a codeigniter site to help seo
body: <p>I want remove "index.php" from my url </p>
  
  <pre><code>http://localhost/simpleblog/index.php/blogger/NewBlogs
  </code></pre>
  
  <p>I need it as </p>
  
  <pre><code>http://localhost/simpleblog/blogger/NewBlogs
  </code></pre>
  
  <p>here shows my Controller Code</p>
  
  <pre><code>class Blogger extends CI_Controller {
  
      public function NewBlogs()
      {
          $this-&gt;load-&gt;helper('url');
          $this-&gt;layout="Yes"; //&lt;-- add this*/
         /* $this-&gt;load-&gt;view('welcome_message');*/
          $this-&gt;load-&gt;view('Pages/SecondPage');
      }
  }
  </code></pre>
  
  <p>Default Controller</p>
  
  <pre><code>public function index()
  {
      $this-&gt;load-&gt;helper('url');
      $this-&gt;layout="Yes"; //&lt;-- add this*/
     /* $this-&gt;load-&gt;view('welcome_message');*/
      $this-&gt;load-&gt;view('Pages/MainPage');
  }
  </code></pre>
  
  <p>How to remove index.php ?</p>