title: URL Rewrite Rule using .htaccess not working as expected
body: <p>In continuation with my previous Question <a href="https://stackoverflow.com/questions/10164476/url-rewrite-rule-based-on-certain-conditions">url-rewrite-rule-based-on-certain-conditions</a>
  I am trying to do a URL rewrite like this </p>
  
  <pre><code>http://www.mydomain.com/wp-content/plugins/pluginA/abc.css
  http://www.mydomain.com/wp-content/plugins/pluginA/abc.js
  </code></pre>
  
  <p>i want that when the CSS and JS are from this plugin (Plugin A ) or any other plugin whose URL i want to rewrite, The URL should get rewritten as</p>
  
  <pre><code>http://www.cdn.mydomain.com/wp-content/plugins/pluginA/abc.css
  http://www.cdn.mydomain.com/wp-content/plugins/pluginA/abc.js
  </code></pre>
  
  <p>This is what i tried as in my .htaccess file</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  Options +FollowSymLinks
  RewriteEngine On
  RewriteBase /wordpress/
  RewriteCond %{QUERY_STRING} (\&lt;|%3C).*script.*(\&gt;|%3E) [NC,OR]
  RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
  RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} ^.+\.(css|js)$
  RewriteRule ^wp-content/plugins/(nivo-slider-light|Usernoise|lightbox-plus|wp-content-slideshow|content-slide)/(.+)$ http:/abc.cloudfront.net/wp-content/plugins/$1/$2 [L,R=302,QSA]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /wordpress/index.php [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>I have tried every possible way to rewrite the URL so that JS and CSS should get served from my CDN server, but seems like the rule is never been picked up by apache.Any help/pointer in this regard will really be appreciated.</p>