title: Subfolder/Subdirectory and clean URL's
body: <p>after doing tons of tests and looking a lot into stackoverflow, I can't figure out how to achieve this.</p>
  
  <p>I have a website served in a subfolder (<code>www.domain.com/subfolder/</code>). I have the .htaccess located in that subfolder (<code>www.domain.com/subfolder/.htaccess</code>) and I have 3 htmls (<code>index.html, example1.html, example2.html</code>)</p>
  
  <p>I want when you access to <code>www.domain.com/subfolder/example2.html</code> it opens <code>www.domain.com/subfolder/example2/</code> with clean urls and with css, js and image paths working.</p>
  
  <p>I don't know how to set this subfolder as root and continue working clean url's.</p>
  
  <p>This is mi actual .htaccess:</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^([^/]+)/$ $1.html
  RewriteRule ^([^/]+)/([^/]+)/$ /$1/$2.html
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
  RewriteRule (.*)$ /$1/ [R=301,L]
  </code></pre>
  
  <p>I've tried several thing but seems nothing works.</p>
  
  <p>Thanks in advance.
  Diego</p>