title: .htaccess error : The requested URL was not found on this server
body: <p>I have a php file which is home.php</p>
  
  <p>my url on localhost is </p>
  
  <p><code>http://localhost:8888/photo/home.php</code></p>
  
  <p>I want to remove <code>.php</code> from the url</p>
  
  <p>so i create <code>.htaccess</code> file</p>
  
  <pre><code>RewriteEngine On
  
  RewriteRule ^home?$ home.php
  </code></pre>
  
  <p>but i keep getting this error</p>
  
  <blockquote>
    <p>The requested URL /photo/home was not found on this server.</p>
  </blockquote>