title: Configure htaccess to directly access CSS and JS files but redirect all the other requests to index file
body: <p>I am currently developing a system but I am positively confused as to how I am supposed to implement this. This is my simplified file structure</p>
  
  <pre><code>-.htaccess
  --/public
  --/public/index.php
  --/project
  --/project/template1/css
  --/project/template2/js
  --/project/all-other-files-and-folders-used
  </code></pre>
  
  <p>My system currently redirects all requests to the index.php, which loads the files in the project folder for all other work BUT I want the htaccess to recognize all the CSS,IMG and JS files in the Project folders and allow direct access to them.</p>
  
  <p>This is the .htaccess file that I have now</p>
  
  <pre><code>RewriteEngine on
  RewriteRule ^((?!public/).*)$ public/$1 [NC,L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?cmd=$1 [PT,L]
  </code></pre>
  
  <p>Is this possible?
  Thanks in advance</p>