Hey,
I have a main.css file buried deep within some folders of a site and I'm trying to use a rewrite rule to change it from this:
example.com/template/dynamicvalue/css/main.css
To
example.com/css/main.css
I'm using the following but It's giving errors so something must be wrong and I can't spot it?
I have a main.css file buried deep within some folders of a site and I'm trying to use a rewrite rule to change it from this:
example.com/template/dynamicvalue/css/main.css
To
example.com/css/main.css
I'm using the following but It's giving errors so something must be wrong and I can't spot it?
Code:
RewriteCond %{REQUEST_URI} ^template/([a-z]+)/css/main.css
RewriteRule css/main.css$ template/%1/css/main.css [L,QSA]