title: Web server not reading .htaccess file
body: <p>I have Ubuntu 12.10 with apache2 installed, and my .htaccess file is not working. I have it set up to be able to not have .php file extensions in the links, so it looks like www.website.com/login instead of /login.php, but it says that the URL "/login" is not found on the server. I have read <a href="http://www.cyberciti.biz/faq/apache-htaccess/" rel="nofollow noreferrer">this page</a> and it says something about "AllowOverride All" but I don't know where that is, or if I need to add it, where I would add it.</p>
  
  <p><strong>EDIT:</strong> I have found <a href="https://help.ubuntu.com/community/EnablingUseOfApacheHtaccessFiles" rel="nofollow noreferrer">this link</a> and have found what it says, but it says that I have an Internal Server Error on any page I go to. I have changed the  to</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>but it says Internal Server Error</p>
  
  <p><strong>EDIT #2:</strong> In the error log, it says</p>
  
  <pre><code>/var/www/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
  </code></pre>
  
  <p><strong>EDIT #3:</strong> Found the answer here: <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>