Re: [users@httpd] rewrite rule on apache2 .htaccess file (SOLVED)

2013-07-22 Thread Tamer Higazi
Hi Vincenzo! Thank you for this advise as well By the way, I have added you in skype if you allow me. Tamer On 07/22/13 18:00, Vincenzo D'Amore wrote: > Hi, > > happy to hear you have figured out at last :) > > For the future, if you're in trouble trying to understand what's wrong > in yo

Re: [users@httpd] rewrite rule on apache2 .htaccess file (SOLVED)

2013-07-22 Thread Vincenzo D'Amore
Hi, happy to hear you have figured out at last :) For the future, if you're in trouble trying to understand what's wrong in your rewrite, if you can, try to enable RewriteLog it will help really a lot. Best regards, Vincenzo 2013/7/21 Tamer Higazi > Solved! > > My rewrite rules now look lik

[users@httpd] rewrite rule on apache2 .htaccess file (SOLVED)

2013-07-21 Thread Tamer Higazi
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 Vin

Re: [users@httpd] rewrite rule on apache2 .htaccess file

2013-07-21 Thread Tamer Higazi
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 :( If you have any further ideas, I would thank you. Tamer On 07/21/13 10:46, Vincenzo D'Amore wrote: > Hi, > >

Re: [users@httpd] rewrite rule on apache2 .htaccess file

2013-07-21 Thread Vincenzo D'Amore
Hi, IMHO the first rewrite doesn't match because regex is wrong. The URL your rewrite should match is something like this: /css/path/filename.css so your regex should first match the first / character. Then, don’t confuse alternation with a character class. If you want express an alternation

[users@httpd] rewrite rule on apache2 .htaccess file

2013-07-20 Thread Tamer Higazi
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