cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bert Van Kets <b...@vankets.com>
Subject Re: redirect problems
Date Wed, 16 Jul 2003 18:46:06 GMT
I knew it was something stupid I was overlooking. :-/
My recent burn out hasn't faded from my system yet. (bad excuse, but an 
excuse non the less)

Thanks for the help, it works now.
Bert

At 20:42 16/07/2003 +0200, you wrote:
>Bert Van Kets wrote:
>
>>I'm using Cocoon 2.1 M3.
>>I've got several subdirectories in my site and would like to map the 
>>requests to the directory with and without a trailing slash to a 
>>pipeline.  The one without the slash is pretty easy, but I can't get the 
>>one with the trailing slash to work.
>>So I'd like to redirects http://mydomain/mydir/ to 
>>http://mydomain/mydir/index.html
>>When I try
>><map:match pattern="h/">
>>         <map:redirect-to uri="h/index.html" session="false"/>
>
>[...]
>
>>to catch the "h" directory, I get a redirect to /h/h/index.html
>
>If the URL does not start with a slash it is interpreted relatively:
>h/ + h/index.html = h/h/index.html
>
>Why don't you redirect to index.html in this case:
>
><map:match pattern="h/">
>   <map:redirect-to uri="index.html" session="false"/>
>
>HTH,
>Andreas
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message