cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geert Josten <Geert.Jos...@daidalos.nl>
Subject Re: Localization
Date Fri, 04 Mar 2005 08:13:44 GMT
Hi,

How about:

<match pattern="domain.tld/*/index.html">
   <redirect-to url="domain.tld/index.html?lang={1}"/>
</match>

<match pattern="domain.tld/index.html">
   <generate src="index.html"/>
   <!-- localisation using {request-param:lang} -->
   <serialize type="html"/>
</match>

Cheers

Chris. Grobmeier wrote:

> hi,
> 
> how can i have this link:
> 
> domain.tld/de/index.html
> 
> pointing to domain.tld/index.html, without having a folder named "de"
> and without redirection (url must stay with /de/ in the middle).
> I want to use "de" as a parameter for selecting my content xml-files.
> 
> I tried it with match="*/index.html" but only figured out to make
> a redirection. Is there something like an url rewriter? i thought so
> but i didn't find it any more in the documentation.
> 
> I am also interested in "best practices". I didn't like the sample
> with the request param, cause it's not search engine friendly and
> i want not to have deep links with blub.html?lang=de or something like 
> that.
> 
> Thanx + Kindly Regards,
> Chris
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 
> 

-- 
Geert.Josten@Daidalos.nl
IT-consultant at Daidalos BV, Zoetermeer (NL)

http://www.daidalos.nl/
tel:+31-(0)79-3316961
fax:+31-(0)79-3316464

GPG: 1024D/12DEBB50

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


Mime
View raw message