Hey,
I'm trying to solve this using the new ${host} macro and I'm getting pretty
close, but I still need your help.
I'm just learning how to use RE, and this is what I came up with:
1 - Creating a behavior rule based on host which is not my main domain
2 - Using a redirection handler with it.
3 - Choosing internal redirection.
4 - using this RE: ^/(.*)$ -> maindomain.com/${host}/$1
This seems to work fine, but ${host} gives me the whole hostname obviously.
How can I cut just the first part of it, before the dot? (something like
host.split('.')[0] in python)
I Hope I was clear...
Thank you!
Yo'av
2010/4/14 Yo'av Moshe <[email protected]>
> Sure, done.
> Issue #806: code.google.com/p/cherokee/issues/detail?id=806
>
> Thank you!
>
> Yo'av
>
> 2010/4/14 Alvaro Lopez Ortega <[email protected]>
>
> Hello Yo'av,
>>
>> On 11/04/2010, at 12:04, Yo'av Moshe wrote:
>>
>> > I want to create an internal redirection based on the subdomain, like
>> this:
>> >
>> > blabla.somedomain.org.il/some/stuff ->
>> somedomain.org.il/blabla/some/stuff
>> > another.somedomain.org.il -> somedomain.org.il/another
>> > somedomain.org.il -> somedomain.org.il/somedomain
>> >
>> > Can anyone help me with this?
>>
>> I'm afraid that sort of redirection cannot be performed at the moment.
>> However, it does sound like something we should get soon into Cherokee
>> before the version 1.0 - scheduled for May 7th.
>>
>> Could you please log a RFE for this?
>>
>> http://bugs.cherokee-project.com/new
>>
>> --
>> Octality
>> http://www.octality.com/
>>
>>
>
> --
> Yo'av Moshe
>
--
Yo'av Moshe
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee