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.
RewriteRule (.*)/base.css$ include/style/base.css [L,NC,R=301]
Also it redirects to http://localhost/C:/somemaps/include/style/base.css which it isn’t really supposed to do either.
Can anyone tell me how to fix this?
Also I would like to have the RewriteRule so it would redirect any file.css to {folder of .htacces file}/include/style/file.css
BTW the .htacces file is in the root of the website (which is not the root of the server!)
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
If this doesn’t work try adding the following right after the RewriteEngine On