httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tamer Higazi <th9...@googlemail.com>
Subject [users@httpd] rewrite rule on apache2 .htaccess file (SOLVED)
Date Sun, 21 Jul 2013 19:23:25 GMT
Solved!

My rewrite rules now look like this:

RewriteEngine on
RewriteCond %{REQUEST_URI} !/static/
RewriteRule ^(.+)\.(css|img|fonts|js)$ /static/$1 [L]

RewriteCond $1 !^(index\.php|images|robots\.txt|static)
RewriteRule ^(.*)$ /index.php/$1 [L]



On 07/21/13 20:34, Tamer Higazi wrote:
> Hi Vincenzo!
> 
> My rewrite rule now lookes like this:
> 
> RewriteEngine on
> 
> RewriteRule ^/(css|js|fonts)(/.*)?$ /static$2 [L]
> RewriteRule ^/(.*)$ /index.php/$1 [L]
> 
> and now nothing works :(
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message