title: How to have the .htaccess with Mamp
body: <p>How to have the .htaccess in a local environment and Mamp?  </p>
  
  <p>I have in Applications > Mamp > htdocs > myWebsite this 2 files:<br>
  index.php<br>
  .htaccess</p>
  
  <p>In .htaccess I have:</p>
  
  <pre><code>RewriteEngine on
  RewriteBase /myWebsite/
  RewriteRule ^(.*)$ $1.php
  </code></pre>
  
  <p>If i write this in the browser, it works:<br>
  <a href="http://localhost/myWebsite/index.php" rel="nofollow noreferrer">http://localhost/myWebsite/index.php</a></p>
  
  <p>But if I write this does not:<br>
  <a href="http://localhost/myWebsite/index" rel="nofollow noreferrer">http://localhost/myWebsite/index</a><br>
  This means that the .htacces does not take effect, I suppose.</p>
  
  <p>I have searched a lot of places and applied what they say. Just an example:
  <a href="https://stackoverflow.com/questions/7670561/how-to-get-htaccess-to-work-on-mamp">How to get htaccess to work on MAMP</a></p>
  
  <pre><code>&lt;Directory /&gt;
      Options Indexes FollowSymLinks
      AllowOverride None
  &lt;/Directory&gt;
  </code></pre>
  
  <p>Replace None with All<br>
  Restart MAMP servers</p>
  
  <p>I have checked to upload that files in a remote server and there, it works well.</p>
  
  <p>What else can I do? how to have the .htaccess with Mamp?</p>