title: Invalid Command 'ReWriteEngine'
body: <p>First off, before somebody posts this link, I will tell you I have looked through it and tried what it said to no avail. <a href="https://stackoverflow.com/questions/10144634/htaccess-invalid-command-rewriteengine-perhaps-misspelled-or-defined-by-a-m">.htaccess: Invalid command &#39;RewriteEngine&#39;, perhaps misspelled or defined by a module not included in the server configuration</a></p>
  
  <p>I am using Codeigniter on a website and am attempting to get rid of the index.php in the URL. This code has been added to the .htaccess file in the root of my website. </p>
  
  <pre><code> RewriteEngine on
   RewriteCond $1 !^(index\.php|images|robots\.txt)
   RewriteRule ^(.*)$ /index.php/$1 [L]
  </code></pre>
  
  <p>When I test it I get a 500 internal server error. Checking the error logs is says "Invalid Command 'RewriteEngine'". In the mods-enabled folder rewrite.load is listed. Also, I have restarted Apache after enabling rewrite.</p>
  
  <p>Spent a few hours messing around with this and still have the same problem. Thanks in advance. </p>
  
  <p>Source for .htaccess code: <a href="http://ellislab.com/codeigniter/user-guide/general/urls.html" rel="nofollow noreferrer">http://ellislab.com/codeigniter/user-guide/general/urls.html</a></p>