title: mod_rewrite load css and js if file not found
body: <p>I have these lines in my <code>httpd.conf</code> which make the all the url as a single parameter (<code>'name'</code>) and when I type an name that doesen't exist index.php is loaded properly and a 404 message is shown. But the problem is that <code>JavaScript, CSS and other assets are not loaded.</code> How to load those files even if a dir/ file doesn't exists. ? I'm using <code>relative paths</code>. Thanks ;)</p>
  
  <pre><code>&lt;Directory  "c:/Apache24/htdocs/public"&gt;
      &lt;IfModule mod_rewrite.c&gt;
          RewriteEngine On
          RewriteCond %{REQUEST_FILENAME} !-f
          RewriteCond %{REQUEST_FILENAME} !-d
          RewriteRule ^(.+)$ index.php?name=$1 [QSA,L]
      &lt;/IfModule&gt;
  &lt;/Directory&gt;
  </code></pre>