title: Codeigniter htaccess rewriterules
body: <p>I'm trying to short my webpage's url with the rewriterules with codeigniter.</p>
  
  <p>I've got in my .htaccess:</p>
  
  <pre><code>RewriteEngine on
  RewriteBase /ci/
  RewriteRule ^([0-9a-zA-Z_-]+)?$ index.php/controller/method/$1
  </code></pre>
  
  <p>But seems my application ignores all.</p>
  
  <p>I put:</p>
  
  <pre><code>http://localhost/ci/variable
  </code></pre>
  
  <p>and error page is displayed:</p>
  
  <p>Object not found error 404.</p>
  
  <p><code>LoadModule rewrite_module modules/mod_rewrite.so</code> is also not commented.</p>
  
  <p>I've done it in a simple project and seem it works, but not with my codeigniter.</p>
  
  <p>Can somebody help me to solve this issue?</p>
  
  <p>Thanks.</p>
  
  <p>SOLVED ON:</p>
  
  <pre><code>Adding RewriteEngine on
  RewriteRule ^([0-9a-zA-Z_-]+)?$ /ci/index.php/controller/method/$1 [L,R=301]
  </code></pre>