title: How to remove index.php in codeigniter on ubuntu server?
body: <p>I have researched on all the question on stackoverflow to remove index.php from codeigniter but still i am unable to do it. Only landing page opens but rest of the pages are blank. 
  I m using own <code>ubuntu</code> linux server.
  My rewrite module is also on. I tried <code>$config['uri_protocol']</code> with all possible values. <code>AUTO, PATH_INFO, QUERY_STRING, ORIG_PATH_INFO</code>.
  My htaccess code is here </p>
  
  <pre><code>RewriteEngine on
  AddType text/x-component .htc
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php/$1 [L]
  </code></pre>
  
  <p>vhost file is here </p>
  
  <pre><code>DocumentRoot /home/black-sheep/black-sheep.org
  
      &lt;Directory /&gt;
              Options FollowSymLinks
              AllowOverride FileInfo
      &lt;/Directory&gt;
  
      &lt;Directory /home/black-sheep/black-sheep.org/&gt;
              Options +Indexes +FollowSymLinks +MultiViews
              AllowOverride All
              Order allow,deny
              allow from all
      &lt;/Directory&gt;
  
  
      ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
      &lt;Directory "/usr/lib/cgi-bin"&gt;
              AllowOverride None
              Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
              Order allow,deny
              Allow from all
      &lt;/Directory&gt;
  
      ErrorLog /var/log/apache2/error.log
  
      # Possible values include: debug, info, notice, warn, error, crit,
      # alert, emerg.
      LogLevel warn
  
      CustomLog /var/log/apache2/access.log combined
  </code></pre>
  
  <p>
  My website url is</p>
  
  <pre><code>http://black-sheep.org/
  </code></pre>
  
  <p>This is the path  when i echo <code>__FILE__</code> on  index.php</p>
  
  <pre><code>/home/black-sheep/black-sheep.org/index.php
  </code></pre>
  
  <p>Its amazing that wordpress site on same server without index.php is running good with following htaccess. </p>
  
  <pre><code># BEGIN WordPress
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
  &lt;/IfModule&gt;
  
  # END WordPress
  </code></pre>
  
  <p>I tried with this htaccess also but it doesn't work for me. </p>
  
  <p>Please suggest me the solution. 
  Thanks in advance </p>