title: mod_rewrite doesn't work on localhost
body: <p>I've tried to rewrite the URL of the website <code>foto.php</code> to <code>Aquaria.php</code> but for some reason it doesn't work, I'm not getting a console error or an error on the page.</p>
  
  <p>I've placed the <code>htaccess.htaccess</code> file in the root directory of my <code>Aquaria</code> website.</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  options +FollowSymLinks
  RewriteRule foto.php(.*) Aquaria.php$1 [PT]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>I've used the following links to educate myself on how to use htaccess:</p>
  
  <ol>
  <li><a href="https://stackoverflow.com/questions/23074903/url-rewrite-not-working-htaccess">URL Rewriting not working</a> </li>
  <li><a href="https://stackoverflow.com/questions/11243975/rewriting-url-with-htaccess-local-in-xampp">Rewrite URL with htaccess
      localhost</a></li>
  <li><a href="http://www.anmsaiful.net/blog/php/enable-apache-rewrite-module.html" rel="nofollow noreferrer">Enable URL Rewriting</a></li>
  <li><a href="http://corz.org/server/tricks/htaccess2.php" rel="nofollow noreferrer">htaccess tricks and tips</a></li>
  </ol>
  
  <p>I've checked if there was a <code>#</code>before: <code>LoadModule rewrite_module modules/mod_rewrite.so</code> and it wasn't there, I then went on to try changing <code>AllowOverride None</code> to <code>AllowOverride ALL</code> as suggested by <a href="http://www.anmsaiful.net/blog/php/enable-apache-rewrite-module.html" rel="nofollow noreferrer">the third link</a>, this didn't work either. After researching <code>AllowOverride None</code> I read that it shouldn't be used because it may grant access to all files for every user on the website.</p>
  
  <p>Using <code>phpinfo();</code> I checked if the Rewrite Module was loaded, which it was, I checked it where it says <code>Loaded Modules</code>, where I found <code>mod_rewrite</code></p>
  
  <p>TL;DR: The rewrite module doesn't give an error in the console on LocalHost, neither does it give an error on the page, I've used the links mentioned above to educate myself little by little to get to where I'am now.</p>