Mailing List Archive

apache rewrite
I'm new here, so first thing Hi everyone.

I'm moving a website from apache to cherokee, it's almost done, but there
are some little thing still.
All is already working perfectly so i'm trying to use the same rule that
"takes away" the date part from old posts (
../2009/10/23/videocartelera-23-octubre-2009/) to work with a new title
only permalink ( ../videocartelera-23-octubre-2009/ )

In apache i was using something like:
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/(.*)$
http://estrenos-de-cine.labutaca.net/$4 [L,R=301]

and in cherokee i'm trying first in the last behavior of the domain
(Default one) that has last rule
(wordpress one ^/(.*)$ => /index.php?$1)
and i write before another internal regular expression like
^([0-9]{4})/([0-9]{2})/([0-9]{2})/(.*)$ => /$4

But it's not working.
How can i solve this?

Thanks
Re: apache rewrite [ In reply to ]
Only a little correction in regex

^(.*)/([0-9]{4})/([0-9]{2})/([0-9]{2})/(.*)$ => /$5

and the most important part, a regular expression behavior with a _non
final rule_

Next stage, amazon balanced cherokee web instances in meneame.com style.


On Mon, Jan 16, 2012 at 20:47, jlan <joseluisalcazar@gmail.com> wrote:

> I'm new here, so first thing Hi everyone.
>
> I'm moving a website from apache to cherokee, it's almost done, but there
> are some little thing still.
> All is already working perfectly so i'm trying to use the same rule that
> "takes away" the date part from old posts (
> ../2009/10/23/videocartelera-23-octubre-2009/) to work with a new title
> only permalink ( ../videocartelera-23-octubre-2009/ )
>
> In apache i was using something like:
> RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/(.*)$
> http://estrenos-de-cine.labutaca.net/$4 [L,R=301]
>
> and in cherokee i'm trying first in the last behavior of the domain
> (Default one) that has last rule
> (wordpress one ^/(.*)$ => /index.php?$1)
> and i write before another internal regular expression like
> ^([0-9]{4})/([0-9]{2})/([0-9]{2})/(.*)$ => /$4
>
> But it's not working.
> How can i solve this?
>
> Thanks
>
Re: apache rewrite [ In reply to ]
Does this mean that you fixed it?

On Wed, Jan 18, 2012 at 5:30 AM, jlan <joseluisalcazar@gmail.com> wrote:

> Only a little correction in regex
>
> ^(.*)/([0-9]{4})/([0-9]{2})/([0-9]{2})/(.*)$ => /$5
>
> and the most important part, a regular expression behavior with a _non
> final rule_
>
> Next stage, amazon balanced cherokee web instances in meneame.com style.
>
>
> On Mon, Jan 16, 2012 at 20:47, jlan <joseluisalcazar@gmail.com> wrote:
>
>> I'm new here, so first thing Hi everyone.
>>
>> I'm moving a website from apache to cherokee, it's almost done, but there
>> are some little thing still.
>> All is already working perfectly so i'm trying to use the same rule that
>> "takes away" the date part from old posts (
>> ../2009/10/23/videocartelera-23-octubre-2009/) to work with a new title
>> only permalink ( ../videocartelera-23-octubre-2009/ )
>>
>> In apache i was using something like:
>> RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/(.*)$
>> http://estrenos-de-cine.labutaca.net/$4 [L,R=301]
>>
>> and in cherokee i'm trying first in the last behavior of the domain
>> (Default one) that has last rule
>> (wordpress one ^/(.*)$ => /index.php?$1)
>> and i write before another internal regular expression like
>> ^([0-9]{4})/([0-9]{2})/([0-9]{2})/(.*)$ => /$4
>>
>> But it's not working.
>> How can i solve this?
>>
>> Thanks
>>
>
>
> _______________________________________________
> Cherokee mailing list
> Cherokee@lists.octality.com
> http://lists.octality.com/listinfo/cherokee
>
>
Re: apache rewrite [ In reply to ]
The source for the documentation is at
https://github.com/cherokee/webserver/tree/master/doc. I'm sure that if you
wrote some documentation, it could be added to Cherokee :)

On Sat, Jan 21, 2012 at 6:09 PM, jlan <joseluisalcazar@gmail.com> wrote:

> Yes, i mean that with this correction is working now.
> I think that would be important to have a few examples of some apache to
> cherokee rewrite rules, non leech rules, etc
> I could help with the docbook with some examples and aclarations.
>
>
> On Sat, Jan 21, 2012 at 04:03, Daniel Lo Nigro <lists@dan.cx> wrote:
>
>> Does this mean that you fixed it?
>>
>> On Wed, Jan 18, 2012 at 5:30 AM, jlan <joseluisalcazar@gmail.com> wrote:
>>
>>> Only a little correction in regex
>>>
>>> ^(.*)/([0-9]{4})/([0-9]{2})/([0-9]{2})/(.*)$ => /$5
>>>
>>> and the most important part, a regular expression behavior with a _non
>>> final rule_
>>>
>>> Next stage, amazon balanced cherokee web instances in meneame.com style.
>>>
>>>
>>> On Mon, Jan 16, 2012 at 20:47, jlan <joseluisalcazar@gmail.com> wrote:
>>>
>>>> I'm new here, so first thing Hi everyone.
>>>>
>>>> I'm moving a website from apache to cherokee, it's almost done, but
>>>> there are some little thing still.
>>>> All is already working perfectly so i'm trying to use the same rule
>>>> that "takes away" the date part from old posts (
>>>> ../2009/10/23/videocartelera-23-octubre-2009/) to work with a new title
>>>> only permalink ( ../videocartelera-23-octubre-2009/ )
>>>>
>>>> In apache i was using something like:
>>>> RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/(.*)$
>>>> http://estrenos-de-cine.labutaca.net/$4 [L,R=301]
>>>>
>>>> and in cherokee i'm trying first in the last behavior of the domain
>>>> (Default one) that has last rule
>>>> (wordpress one ^/(.*)$ => /index.php?$1)
>>>> and i write before another internal regular expression like
>>>> ^([0-9]{4})/([0-9]{2})/([0-9]{2})/(.*)$ => /$4
>>>>
>>>> But it's not working.
>>>> How can i solve this?
>>>>
>>>> Thanks
>>>>
>>>
>>>
>>> _______________________________________________
>>> Cherokee mailing list
>>> Cherokee@lists.octality.com
>>> http://lists.octality.com/listinfo/cherokee
>>>
>>>
>>
>