title: htaccess - removal of extension - allow or force trailing slashes without breaking relative links
body: <p>and thanks in advance for any help!</p>
  
  <p>What I'm trying to achieve is this: I would like to remove the file extension from file names using htaccess -  which is what I've done. However, when a user points their browser to a file without an extension and adds a trailing slash I get a page not found error. I found some code which corrected this, however, when I implemented the code, it broke my relative links to CSS and jQuery located in the head. </p>
  
  <p>I really would rather like to keep relative links to all my files, but would also like to allow trailing slashes for individual files.</p>
  
  <p>Is this possible?</p>
  
  <p>My site is here: <code>http://www.getagig.info</code></p>
  
  <p>And my current htaccess code (which only removes extensions is below).</p>
  
  <pre><code>RewriteEngine on
  
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME}\.php -f
  RewriteRule ^(.*)$ $1.php
  </code></pre>