rewrite rule on apache2 .htaccess file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi people!
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:

RewriteEngine on
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

/index.php/


The second rule seems to work. But the 1st rule makes me headache.

If you have an idea, I would kindly thank you.




Tamer

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux