title: RewriteRule not working when file extensions included
body: <p>Hey, I am trying to use mod_rewrite to make <code>http://example.com/style/universal.css</code> show the page <code>http://example.com/style.php?n=universal</code></p>
  
  <p>I am currently using the following <code>RewriteRule</code>:</p>
  
  <pre><code>RewriteRule ^style/([^/\.]+)\.css$ style.php?n=$1
  </code></pre>
  
  <p>But it doesn't seem to work, for some reason it instead shows a <code>404 Not Found</code> which is not even the correct 404 page.</p>
  
  <p>I have tried doing it without the extension <code>.css</code> (i.e. <code>http://example.com/style/universal</code>) with the <code>RewriteRule</code></p>
  
  <pre><code>RewriteRule ^style/([^/\.]+)$ style.php?n=$1
  </code></pre>
  
  <p>Which works, but I would much prefer it if I could get it working with the <code>.css</code> extension.</p>
  
  <p>It seems to be something with the server ignoring the RewriteRule if a  file extension is used. Is there a <code>RewriteCond</code> or something obvious that I am missing?</p>
  
  <p><strong>I should also mention that there is a <code>.htaccess</code> in the parent directory which is set by  WordPress, the contents of this are:</strong></p>
  
  <pre><code>RewriteEngine on
  
  # BEGIN WordPress
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  
  RewriteRule . /index.php [L]
  &lt;/IfModule&gt;
  
  # END WordPress
  </code></pre>
  
  <p>Any help would really be appreciated.</p>
  
  <p>Thanks in advance, Brad.</p>