[99s-extend] Rewriting URLs

Loïc Hoguin essen at ninenines.eu
Tue Jan 27 14:29:20 CET 2015


On 01/27/2015 02:24 PM, Paul Dickson wrote:
> On Tue, 2015-01-27 at 14:10 +0100, Loïc Hoguin wrote:
>> On 01/27/2015 02:07 PM, Paul Dickson wrote:
>> >   Info [<<"/">>,<<"music">>,<<"Library">>,<<"Folk">>,<<"Swiss">>,
>> >           <<"Alphorn.ogg">>]
>>
>> Should be from Library onward, and not include the first two elements.
>>
>
> This is perhaps a confusing case, because the incoming URL and the
> transformed URL both start with "/music".  What if that was not the
> case, and the resulting path was, for example,
>
>      /home/me/music/Folk/Swiss/Alphorn.ogg
>
> which does not match anything in the rules at all?  Is that allowed, or
> must the rewritten URL also match a rule?

Middlewares execute in order and only once, so not sure what you're asking.

Again I'd need to see some code to help you as I am quite confused by 
what you are trying to do and what your issue is.

-- 
Loïc Hoguin
http://ninenines.eu


More information about the Extend mailing list