title: 500 Internal Server Error CodeIgniter htaccess mod_rewrite
body: <p>I coded my web application on windows, and I am pushing it to my server, which runs Ubuntu Linux. Here is my .htaccess file:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
    RewriteEngine On
    RewriteBase /SearchDatGifUbuntu/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]
  &lt;/IfModule&gt;
  
  &lt;IfModule !mod_rewrite.c&gt;
    # If we don't have mod_rewrite installed, all 404's
    # can be sent to index.php, and everything works as normal.
    ErrorDocument 404 /index.php
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>My file at /etc/apache2/sites-available/default is as follows:</p>
  
  <pre><code>&lt;Directory /var/www/&gt;
      Options Indexes FollowSymLinks MultiViews
      AllowOverride All
      Order allow,deny
      allow from all
  &lt;/Directory&gt;
  </code></pre>
  
  <p>I typed sudo a2enmod rewrite into the command line on my ubuntu server, and it says mod_rewrite is already turned on.</p>
  
  <p>As I debugged through my codeigniter application, the error seemed to show up on line 308 in CodeIgniter.php, which is:</p>
  
  <pre><code>$CI = new $class();
  </code></pre>
  
  <p>Can someone please let me know what is going on?</p>