I have problems making successfully a rewrite rule for my Webapplication (CodeIgniter) with mod_rewrite.
In my ".htaccess" file, I have the following rewrite rules:
RewriteRule ^[css|js|fonts](/.*)?$ /static$1 [L]
RewriteRule ^(.*)$ /index.php/$1 [L]
But the 1st rule doesn't work, neither I know if the rule was correct.
I want first:
/css/* -> /static/css/*
,/js/* -> /static/css/*
/fonts/* -> /static/fonts/*
and anything else
The second rule seems to work. But the 1st rule makes me headache.