httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "kajaa" <ka...@eastday.com>
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]
 RewriteRule
^(de|en|fr|ja|ko|zh-cn|ru)/(developer|faq|howto|images|misc|mod|platform|pro
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]
 RewriteRule
^(de|en|fr|ja|ko|zh-cn|ru)/(.*)\.html\.(de|en|fr|ja|ko|zh-cn|ru)$
$2\.html\.$1 [S=1]
 RewriteRule
^(de|en|fr|ja|ko|zh-cn|ru)/(developer|faq|howto|images|misc|mod|platform|pro
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: http://kajaa.bbs.us/manual

kajaa


----- Original Message ----- 
From: "André Malo" <nd@perlig.de>
To: <docs@httpd.apache.org>
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
use
> the config in
>
<http://cvs.apache.org/viewcvs.cgi/httpd-2.0/docs/conf/httpd-std.conf.in?rev
=1.27.2.11>.
>
>
<http://cvs.apache.org/viewcvs.cgi/httpd-2.0/docs/conf/httpd-std.conf.in?rev
=HEAD>
> is more simple, but currently only usable with 2.1 (not-yet-backported
setenvif feature).
>
> > How do you manage the variant files in
http://httpd.apache.org/docs-2.0/?
>
> There does actually a set of RewriteRules do the work (.htaccess file).
You
> 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: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Mime
View raw message