Everything is working now. Thanks a lot!

2011/2/19 Alvaro Lopez Ortega <[email protected]>:
> Hello Léon,
>
> On 19/02/2011, at 19:40, Léon Dignòn wrote:
>
>> Thank you very much!
>>
>> I solved it with your help. I just don't like the extension ANY and
>> prefer to serve only JPG in #3 (see below). But when I change it to
>> JPG, I end up having only non-formatted text everywhere. CSS and
>> images won't load. I guessed that this is because the extension CSS is
>> ignored at all, but why doesn't it show JPGs then? Further, when I
>> open a jpg by URL, I get an 404 error.
>>
>> Can anybody help me to understand that problem?
>
> Please, find a few comments in-line.
>
>> P.S. This is how I solved it:
>>   1. Regular Expression: ^/?$, Handler: Redirection Internal ^/?$,
>> Substitution: index.php
>
> You could use a much simpler "Full Path /" here. It's much simpler and does 
> the same.
>
>>   2. Extensions: php, Handler: fcgi, Final
>>   3. File Exist: Any, Handler: file, Final (prefer JPG instead of ANY)
>
> You do can define a list of extensions instead of the "File Exists: any" 
> rule. It has pros and cons though. Pros: it's slightly faster. Cons: You have 
> to replace a plain and simple "File Exists" rule by a "Extensions" one with a 
> list of every single extension you'd like to serve as static content. Eg: 
> "html,jpg,jpeg,gif,css,txt" - and of course, keep it updated.
>
>>   4. Default: Redirection Internal ^/(.+?)(?:/(.*?)(?:/.*)?)?$,
>> Substitution: /index.php?p1=$1&p2=$2
>>
>> P.P.S Thanks for the explanation of Final/Non-Final! You should
>> include that in the documentation of Cherokee. Couldn't find any clues
>> about that button in the docs.
>
> Actually, it is explain in the documentation.. although, it looks that we 
> should make it more visible. The rule evaluation mechanism is the most 
> important mechanism of the server, and one of the most common topic of the 
> questions of this mailing list.
>
> Cheers!
>
> --
> Octality
> http://www.octality.com/
>
>
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to