views:

10

answers:

1

Hey,

I have the following in the htaccess of my main folder

Options +FollowSymLinks
RewriteEngine on

RewriteRule ^css/(.*)\.css$ - [L]
RewriteRule ^(.*)\.css$ - [L]

The second rule works fine. That is, the CSS files in the main directory are accessed directly. However, this was not propagating to the directory "css". Hence I created the first rule. That is also not working.

Is there a particular reason why the rules don't propagate or am I missing something here?

A: 

I feel so stupid right now. Turns out the Rewrite rules were all correct. The error was with the folder permissions. Once that was set, the site is functioning as expected.

Just leaving this here in case someone gets stuck at the same point as I did!

Hasan