title: CodeIgniter 500 Internal Server Error
body: <p>I downloaded a PHP script written using CodeIgniter. when I run it from the localhost, on going to the admin folder, it shows localhost again. Also when running from my web host, it shows a 500 Internal Server Error.</p>
  
  <p>I run the site from <a href="http://localhost/myproj">http://localhost/myproj</a> It works. Then when I try to go to the admin page which is at <a href="http://localhost/myproj/administrator">http://localhost/myproj/administrator</a>, it gives a 500 Internal Server Error.</p>
  
  <p>I read here that this might be due to a wrong code in the .htaccess file. This is my present .htaccess file</p>
  
  <p></p>
  
  <pre><code>RewriteEngine On
  RewriteBase /
  
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.+)/$ $1 [L,R=301]
  
  RewriteCond %{REQUEST_URI} ^system.*
  RewriteRule ^(.*)$ /index.php/$1 [L]
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ /index.php/$1 [L]
  </code></pre>
  
  <p></p>
  
  <p></p>
  
  <pre><code># Without mod_rewrite, route 404's to the front controller
  ErrorDocument 404 /index.php
  </code></pre>
  
  <p></p>
  
  <p>Please help me. I know it might be a very small problem, but I'm unable to find the error.</p>