title: website defaults to a directory and ignores a php file
body: <p>I'm using the apache2 web server to host my website. All of my php files are located in the /var/www/html/ directory. I also have a email server that stores emails in /var/www/html/contact. When accessing using an a tag to open contact.php from index.php, apache2 sends the browser to example.com/contact/ and not example.com/contact. I have a .htaccess file to ignore the .php file extension. I have tried deleting the contact directory to see if that was the issue, but same thing happens.</p>
  
  <p>Heres my .htaccess</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^([^\.]+)$ $1.php [NC,L]
  SetEnv TZ America/Indianapolis 
  </code></pre>