2008/8/24 Stefan de Konink <[EMAIL PROTECTED]> > pacopepe22 pacopepe22 schreef: > >> The rules that I need to add are: >> >> >> RewriteEngine on >> RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php >> >> >> I think that I can insert in the virtual server conf, but... how? >> > > Now that doesn't look like a challenge ;) > > > 1) Start up your Cherokee-admin thingie > 2) Virtual servers > 3) Behavior > 4) Add new rule, rule type: Regular Expression > 5) Regular Expression: \.(js|ico|gif|jpg|png|css)$ > 6) Handler > 7) None -> Redirection > 8) Show: Internal > 9) Regular Expression: .* > 10) Substitution: index.php
Hello, Thank you for your help, Stefan I follow your instructions and everything it's ok except point 9. In regular expression there is no need to write nothing. Now, the ZF works ok except one mistake... it's works the wrong way round. If you see, in my last email the rewrite rule was: !\.(js|ico|gif|jpg|png|css)$ index.php (with de ! in front) I put "!" in the rule but didnt't work. I think that the perl regular expressions don't interpretate well. I have read all the documentation of perl regex (provided by cherokee-admin) and i don't see how i can negate the expresion rule Any help? Thank you again! > > > > Submit :) > > If I'm wrong someone else will correct it :) The only thing I'm not > confident are the last too rules :) but check it out ;) > > > Stefan >
_______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
