httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "kajaa" <>
Subject Re: [TRANSLATION] index.xml filter.xml
Date Sun, 06 Jul 2003 05:43:47 GMT
While waiting for your reply, I wrote some rules as below:

 RewriteEngine On
 RewriteBase /docs/LocalDocs/ApacheManual
 RewriteRule ^(de|en|fr|ja|ko|zh-cn|ru)[/]?$ index\.html\.$1 [S=5]
 RewriteRule ^(de|en|fr|ja|ko|zh-cn|ru)/(de|en|fr|ja|ko|zh-cn|ru)/(.*)$
$2/$3 [R]
grams|search|ssl|style|vhosts)[/]?$ $2/index\.html\.$1 [S=3]
 RewriteRule ^(de|en|fr|ja|ko|zh-cn|ru)/(.*)\.html$ $2\.html\.$1 [S=2]
$2\.html\.$1 [S=1]
grams|search|ssl|style|vhosts)/(.*) $2/$3 [nocase]

 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteRule ^(.*)\.(de|en|fr|ja|ko|zh-cn|ru)$ $1

you may notice that, I didnt append language encoding extensions to HTMLs,
such as gb2312 for zh-cn, euc-kr for kr, jis for ja, but actually, it works
fine, EXCEPT for Russian variants, so, is Russian something special?

BTW, look here for a test:


----- Original Message ----- 
From: "André Malo" <>
To: <>
Sent: Sunday, July 06, 2003 5:12 AM
Subject: Re: [TRANSLATION] index.xml filter.xml

> * kajaa wrote:
> > Noticed that,
> > so, to make the "Available Languages" links work, do I have to use
> > RewriteRules?
> depends ;-)
> If you have a 2.1 or a 2.0.47(-dev) [but will be released soon], you can
> the config in
> is more simple, but currently only usable with 2.1 (not-yet-backported
setenvif feature).
> > How do you manage the variant files in
> There does actually a set of RewriteRules do the work (.htaccess file).
> may need to adjust some paths. These rules probably will be modified
> (simplified; using prefer-language variable) next time somehow, but the
> following is the current state:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message