title: Enabling .htaccess ubuntu 16.04
body: <p>I'm trying to enable my .htaccess in Ubuntu 16.04, so I enabled a2enmod with:</p>
  
  <pre><code>sudo a2enmod rewrite
  </code></pre>
  
  <p>Also I've added the following lines in etc/apache2/apache2.conf:</p>
  
  <pre><code>&lt;Directory /var/www/html&gt;
          Options Indexes FollowSymLinks
          AllowOverride All
          Require all granted
  &lt;/Directory&gt;
  </code></pre>
  
  <p>Also I've added the following lines in etc/apache2/sites-available/000-default.conf</p>
  
  <pre><code>&lt;Directory /var/www/html&gt;
              Options Indexes FollowSymLinks MultiViews
              AllowOverride All
              Order allow,deny
              allow from all
  &lt;/Directory&gt;
  </code></pre>
  
  <p>After this all I've restarted Apache2, the server but no result yet.. Any clear answer on how to enable .htaccess to remove the .php extension? Thanks already!</p>
  
  <hr>
  
  <p>.htaccess file</p>
  
  <pre><code>RewriteEngine on 
  RewriteCond %{REQUEST_FILENAME} !-d 
  RewriteCond %{REQUEST_FILENAME}\.php -f 
  RewriteRule ^(.*)$ $1.php [NC,L]
  </code></pre>