<p>Okay I have this RewriteRule which is supposed to redirect any request for the file base.css to {folder of .htacces file}/include/style/base.css, but is just keeps redirecting in an infinite loop, I thought the L parameter would make sure that wouldn't happen.</p>

<pre><code>RewriteRule (.*)/base.css$ include/style/base.css [L,NC,R=301]
</code></pre>

<p>Also it redirects to <a href="http://localhost/C:/somemaps/include/style/base.css" rel="nofollow noreferrer">http://localhost/C:/somemaps/include/style/base.css</a> which it isn't really supposed to do either.</p>

<p>Can anyone tell me how to fix this?<br>
Also I would like to have the RewriteRule so it would redirect any file.css to {folder of .htacces file}/include/style/file.css<br>
BTW the .htacces file is in the root of the website (which is not the root of the server!)</p>

You have Redirect and Rewrite confused.  A redirect is a HTTP status code that tells the browser to go to another URL.  You actually just want to Rewrite the location to another file location.  Try
```
```
RewriteRule (.*)/(.*).css$ /include/style/$2.css [L,NC]
```
```
If this doesn't work try adding the following right after the RewriteEngine On
```
```
RewriteBase /my-virtual-folder-path-where-htaccess-is-stored
```
```