title: How do I create extensionless urls with my htaccess file that looks like this?
body: <p>Im trying to create extension-less urls on my site and have a few questions.  Hopefully, someone can help me.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^([^/]+)/$ $1.html
  RewriteRule ^([^/]+)/([^/]+)/$ /$1/$2.php
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
  RewriteRule (.*)$ /$1/ [R=301,L] 
  </code></pre>
  
  <ol>
  <li><p>This code adds the trailing slash whether you add it or not.  Is it better to have the trailing slash or without? Or does it matter? The next 2 questions are dependent on what's the best option for question #1.</p></li>
  <li><p>When writing the markup which is a better way to write it? <code>http://www.mysite.com/test</code> or <code>http://www.mysite.com/test/</code> </p></li>
  <li><p>If I have an index.html file in the Folder "Test" and other files in the same folder will the trailing slash on the non index.html files with that file trump all others?  I'm assuming it will.</p></li>
  </ol>
  
  <p>Thanks in advance for any help.</p>